|
il y a 6 jours | |
---|---|---|
.. | ||
dist | il y a 6 jours | |
src | il y a 6 jours | |
LICENSE | il y a 6 jours | |
README.md | il y a 6 jours | |
README_zh-CN.md | il y a 6 jours | |
package.json | il y a 6 jours |
recaculating BetterScroll's scrollHeight or scrollWidth by MutationObserver
, with this, you don't care when BetterScroll's scrollHeight or scrollWidth have changed. Plugin has done it for you.
if current browser does not surpport
MutationObserver
, it will fallback tosetTimeout
in recursion
import BScroll from '@better-scroll/core'
import ObserveDom from '@better-scroll/observe-dom'
BScroll.use(ObserveDom)
const bs = new BScroll('.wrapper', {
observeDOM: true
})