darkroomengineering / lenis

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

Skipping/jumping when scrolling with Trackpad in Safari #198

Closed tobimori closed 1 year ago

tobimori commented 1 year ago

Describe the bug When using the Trackpad in Safari with Lenis, and going back and forth, elements are jumping around which looks very buggy. CleanShot 2023-07-05 at 11 44 31

Everything works fine, so this issue is probably in regard on how macOS/Safari accelerates scrolling via Trackpad. I assume the easiest way to fix it would be if we can disable Lenis similar to mobile devices when the trackpad is used?

I assume we can use the non-standard GestureEvent API to detect so.

To Reproduce Use Safari on this codepen and try to scroll with a trackpad.

clementroche commented 1 year ago

Which version of safari/macos are you using ?

tobimori commented 1 year ago

Which version of safari/macos are you using ?

17 / Sonoma

okay, just checked: can't reproduce it on non-sonoma. god lord 😂 will re-open if it comes to stable.