tz-better-scroll-observe-image
v2.5.5
Published
Observe image loading for BetterScroll
Downloads
8
Maintainers
Readme
@better-scroll/observe-image
when detecting images is loaded or failed to load, auto refresh BetterScroll's size.
Usage
import BScroll from 'tz-better-scroll-core'
import ObserveImage from 'tz-better-scroll-observe-image'
BScroll.use(ObserveImage)
const bs = new BScroll('.wrapper', {
observeImage: true
})