github ilyashubin/scrollbooster v3.0.0

4 years ago

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:
#47 Lock scroll when dragged horizontally/vertically
#46 Add onWheel callback for swap axes

Don't miss a new scrollbooster release

NewReleases is sending notifications on new releases.