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

On MAC OS Sonoma, Safari V17 smoothWheel set to false won't work with overscroll-behavior: contain #298

Open
cojaco opened this issue Feb 14, 2024 · 4 comments

Comments

@cojaco
Copy link

cojaco commented Feb 14, 2024

Describe the bug
On MAC OS Sonoma, Safari V17
Scrolling is not functioning properly when used in conjunction with lenis.options.smoothWheel set to false.
Please remove 'overscroll-behavior: contain' from the CSS.

To Reproduce
https://codepen.io/cojaco/pen/VwRqPLM

@clementroche
Copy link
Member

clementroche commented Feb 14, 2024

imma investigate,
note: overscroll-behavior-y: contain works

One question, why would you need overscroll-behavior: contain on body ?

@cojaco
Copy link
Author

cojaco commented Feb 14, 2024

imma investigate,
note: overscroll-behavior-y: contain works

Thank you, that's right.

One question, why would you need overscroll-behavior: contain on body ?
You are right, not needed on body.

so it's not a lenis bug, but it might be a bit unexpected if it was working fine on Mac Ventura before but not anymore after the update to sonoma and Safari V17.

@clementroche
Copy link
Member

i think it could be Lenis bug since it works without, I just need time to figure it out

@matthisamoto
Copy link

I am seeing a page that won't scroll using mouse wheel when smoothWheel: false and overscroll-behavior: none; set on html & body

Wondering if having overscroll-behavior set in any way breaks this?

I can easily remove this for "desktop" behavior. I believe this may be a fallback for turning off overscroll on mobile devices.

Safari 17.1
macOS Ventura 13.6.2

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

3 participants