-
Notifications
You must be signed in to change notification settings - Fork 296
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
Move overflow:hidden from <html> to <body> tag? #397
Comments
Sorry about that. Sounds better in the |
So this problem still exists after 1.5 years? :-/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I had the issue that my page always jumped to the top when opening a featherlight modal. Especially annoying when using a mobile where a lot of scrolling is made. I had the issue on both Chrome and Firefox.
After reading into that I figured its the
overflow:hidden
added to the<html>
tag. Reading about other modal scripts and that issue, most others added theoverflow:hidden
to the<body>
tag, not to<html>
.After moving the
overflow:hidden
from<html>
to<body>
, my problem disappeared.The text was updated successfully, but these errors were encountered: