Releases: rajatkantinandi/useSwipe
Releases · rajatkantinandi/useSwipe
Version 2 release
- Add useSwipeVector hook
- Get the magnitude & direction of your swipe along with origin using this hook
- Add useSwipePosition hook
- Get raw co-ordinates of your swipe including start & end position
- Add prettier support & better code formatting
- Introduced code-splitting for better bundle size optimization
Add Typescipt support
- Add Typescript support
- Export TS enum SWIPE_DIRECTION which can be imported for comparison
Add mouse swipe event support
Now, this library can be used for non-touch
devices as well. Where it will work based on mousedown
& mouseup
events.
No change in API.
Fix bug causing setDirection to trigger twice
v1.0.4 Fix setDirection triggering twice