Better Scroll Versions Save

:scroll: inspired by iscroll, and it supports more features and has a better scroll perfermance

v2.0.6

3 years ago

Bug Fixes

  • core: window.getComputedStyle will resolve wrong transform value when use CSS transition, so a invalid position will be filtered when dispatching scroll event
  • slide: proxy pausePlay and startPlay methods to bs instance

v2.0.5

3 years ago

Bug Fixes

  • slide: slideWillChange event should work well when probeType is 3

v2.0.4

3 years ago

Features

  • core: support dynamic content, add specifiedIndexAsContent option and contentChanged event
  • plugins: all plugins support dynamic content

v2.0.3

3 years ago

Bug Fixes

  • core: should dispatch scrollEnd event while useTransition is true at some scenes, should sync pressed keys to custom click although bs dispatch click event by itself, close #1060 #981

v2.0.2

3 years ago

Bug Fixes

  • pull-down: remove Direction judgment, close #1056

v2.0.1

3 years ago

Bug Fixes

  • infinity: should modify boundary when initialised

v2.0.0

3 years ago

Bug Fixes

  • slide: fix refresh hooks when window resized, close #1037
  • slide: fix pointer-events not reset, close #989
  • pullup & mouse-wheel: fix not trigger hook, close #881 #805
  • slide & mouse-wheel: fix jumpy, close #733
  • mouse-wheel: should respect disable() API, close #1025

Features

  • core: narrow down bad ios version judgment, optimize init logic
  • movable: new plugin, see details
  • slide: support dynamically adding slidePage when initialised in loop or unloop mode
  • slide: v1's snap option is renamed to slide in v2
  • zoom: provide zoomTo API and add some options, add more precise hooks, expose scale when zooming
  • mouse-wheel: integrated well with wheel,pulldown,pullup plugins
  • pull-down: allow triggering pullingDown when content's size is small
  • pull-up: allow triggering pullingDown when content's size is small
  • observe-dom: remove dependencies of pull-down judgment

v1.15.0

5 years ago

Improvements

provide a configuration for wheel to disable items, see the doc

Bugfix

fix zoomTo api bug

v1.14.0

5 years ago

Improvements

  1. Add autoPullDownRefresh API, see the doc

  2. Remove unnecessary scrolling logic of the API scrollTo

v1.13.0

5 years ago
  1. Remove internal type declaration since @types/better-scroll is ready, see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/28053
  2. Optimize the scroll performance when move slowly.
  3. Add destroy handler of the infinity scroll.