darkroomengineering / lenis

How smooth scroll should be
https://lenis.darkroom.engineering
MIT License
7.37k stars 317 forks source link

Slow Scroll on 2 in 1 tablet #215

Open MoscaFrancesco opened 10 months ago

MoscaFrancesco commented 10 months ago

Describe the bug If i scroll on a 2 in 1 tablet (surfacae go 3), the scroll is very slow and unresponsive, with a massive delay between the actual scroll and the lenin animation. the fact is that it works fine if i use the touch screen, but does not work if i use trackpad

To Reproduce I've tried the same setup with smartphones, tablets and PCs and everything works fine (I've also tried with old PCs or tablets from 10 years ago).

https://codepen.io/Francesco-Mosca/pen/xxmKYdw

clementroche commented 10 months ago

Do you know if your trackpad is sending wheel events while using the trackpad ?

the answer might be here https://github.com/studio-freight/lenis/blob/main/src/virtual-scroll.js.

Actually it would be cool if you can find the answer and fix it for me because i don't want to buy this tablet just for fixing this bug. Thx !