Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollTo blocks scrolling on Safari #218

Closed
VladDigitalOriginal opened this issue Aug 18, 2023 · 9 comments
Closed

scrollTo blocks scrolling on Safari #218

VladDigitalOriginal opened this issue Aug 18, 2023 · 9 comments

Comments

@VladDigitalOriginal
Copy link

I'm using scrollTo with duration: 8, for some smooth animation, based on scroll. I've tried to configure it lenis.scrollTo(initialPosition, { duration: 8, lock: false, force: false }), but it still blocks scrolling on Safari

@clementroche
Copy link
Member

please provide a codesandbox

@VladDigitalOriginal
Copy link
Author

VladDigitalOriginal commented Aug 21, 2023

The bug is only reproduced in preview in Safari.

Maybe some refreshes required to reproduce.

npm run build
npm run preview

codesandbox

edit: update codesandbox link

@clementroche
Copy link
Member

clementroche commented Aug 29, 2023

Which version of Safari are you using ? It works for me using 16.4.

@VladDigitalOriginal
Copy link
Author

My Safari version is 16.6, but I've also encountered it in previous versions. You can try to check it here; a few reloads may be required. Additionally, there is a rotateY based on velocity, and when this bug occurs, the velocity is always equal to 0.

Here is a video where I attempt to scroll, but it appears to be "locked":

Screen.Recording.2023-08-29.at.13.23.00.mov

@clementroche
Copy link
Member

@VladDigitalOriginal are you trying to scroll during the scrollTo animation ?

@VladDigitalOriginal
Copy link
Author

@clementroche yes

@clementroche
Copy link
Member

@VladDigitalOriginal
Copy link
Author

I had the same issue as #103 and wrapper: document.body fixed it, but problem with locked scrollTo (and zero velocity) remains

@clementroche
Copy link
Member

i can't reproduce, i'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants