| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2020-06-07 | 891 Bytes | |
| v3.0.0 source code.tar.gz | 2020-06-07 | 132.5 kB | |
| v3.0.0 source code.zip | 2020-06-07 | 136.0 kB | |
| Totals: 3 Items | 269.4 kB | 1 | |
Added props:
lockScrollOnDragDirection, preventDefaultOnEmulateScroll, dragDirectionTolerance, onPointerDown, onPointerUp, onPointerMove, onWheel
Handler methods now receives third parameter isTouch to detect whether it is called on touch device or desktop.
Removed prop and breaking changes:
pointerDownPreventDefault. Use lockScrollOnDragDirection: 'all' as a replacement, but by default this behavior is now disabled (this means on touch devices all viewport will scroll along scrollable area, use prop lockScrollOnDragDirection to change this behavior for your needs)
Fixed click event on mobile devices
Thanks to @alexwidua and @bragovo for contributions: https://github.com/ilyashubin/scrollbooster/pull/47 Lock scroll when dragged horizontally/vertically https://github.com/ilyashubin/scrollbooster/pull/46 Add onWheel callback for swap axes