Skip to content

Releases: rajatkantinandi/useSwipe

Version 2 release

29 May 06:59
c8b81f5
Compare
Choose a tag to compare
  • 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

15 Mar 17:29
Compare
Choose a tag to compare
  • Add Typescript support
  • Export TS enum SWIPE_DIRECTION which can be imported for comparison

Add mouse swipe event support

12 Oct 16:00
43fa1ad
Compare
Choose a tag to compare

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

01 Jan 20:56
Compare
Choose a tag to compare
v1.0.4

Fix setDirection triggering twice

1st stable release

01 Jan 20:30
Compare
Choose a tag to compare