Releases: ustbhuangyi/better-scroll
Releases · ustbhuangyi/better-scroll
v2.0.6
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
andstartPlay
methods to bs instance
v2.0.5
Bug Fixes
- slide: slideWillChange event should work well when probeType is 3
v2.0.4
Features
- core: support dynamic content, add specifiedIndexAsContent option and contentChanged event
- plugins: all plugins support dynamic content
v2.0.3
v2.0.2
v2.0.1
Bug Fixes
- infinity: should modify boundary when initialised
v2.0.0
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 toslide
in v2 - zoom: provide
zoomTo
API and add some options, add more precise hooks, exposescale
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
Improvements
provide a configuration for wheel to disable items, see the doc
Bugfix
fix zoomTo
api bug
v1.14.0
Improvements
-
Add
autoPullDownRefresh
API, see the doc -
Remove unnecessary scrolling logic of the API
scrollTo
v1.13.0
- Remove internal type declaration since @types/better-scroll is ready, see DefinitelyTyped/DefinitelyTyped#28053
- Optimize the scroll performance when move slowly.
- Add destroy handler of the infinity scroll.