Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@ilyashubin ilyashubin released this 07 Jun 20:00
· 4 commits to master since this release

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