lenis
lenis copied to clipboard
On touch device, scroll event direction is set to 0 instead of 1 or -1
Describe the bug On Desktop device, the parameter "direction" in the scroll listener is set to 1 for a scroll up and -1 for a scroll down. Even with a pad. But on Touch device as Iphone or Ipad, the direction is always set to 0. No way to know if the user swipe from the top to the bottom or reverse...
which version of lenis are you using ?
@clementroche Lenis "^0.2.10"
Try 0.2.28
Hello @clementroche - I'm using 0.2.28 and encountering the same issue, direction property is always returning 0 on touch devices.
You can try using 1.0.0-dev.5
any news @Charlene-Bx, does that fix your issue ?
1.0.0-dev.5 works for me, thanks @clementroche!
1.0.0-dev.8 is available