@better-scroll/nested-scroll

make your nested scrolls reconciliation

Usage no npm install needed!

<script type="module">
  import betterScrollNestedScroll from 'https://cdn.skypack.dev/@better-scroll/nested-scroll';
</script>

README

better-scroll

中文文档

nestedScroll is a plugin which helps you solve the trouble of nested Scroll

Usage

  import BScroll from 'better-scroll'
  import NestedScroll from '@better-scroll/nested-scroll'

  BScroll.use(NestedScroll)

  // parent bs
  new BScroll('.outerWrapper', {
    nestedScroll: true
  })
  // child bs
  new BScroll('.innerWrapper', {
    nestedScroll: true
  })