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

disableBodyScroll with scrollY > 0 leads to a gap on Firefox Mobile #202

Open
mxeff opened this issue Oct 5, 2020 · 4 comments
Open

disableBodyScroll with scrollY > 0 leads to a gap on Firefox Mobile #202

mxeff opened this issue Oct 5, 2020 · 4 comments

Comments

@mxeff
Copy link

mxeff commented Oct 5, 2020

Browser: Firefox Mobile 81.1.1

OS: Android 10

Description: I'm building a fixed scrollable list with 60% viewport height.

Problem: When calling disableBodyScroll on the list with a scrollY-Value greater than 0, scrolling to the bottom of the fixed list leads to a gap above the html-tag.

Example: https://meowing-wry-mice.glitch.me/ (I included a timeout of 2000ms to be able to scroll before disableBodyScroll is called).

Screen_Recording_20201005-193212_Firefox

@diachedelic
Copy link
Collaborator

I can't replicate on Firefox v81 on MacOS - seems like a Firefox Mobile bug. Can you use devtools or something to find out what the gap consists of (e.g. is it margin, padding etc)?

@mxeff
Copy link
Author

mxeff commented Oct 6, 2020

Sure, here you go - it doesn't seem to be a styled spacing. I'm guessing that it's caused by the sticky address bar.
Screenshot_20201006-083552_Firefox

When toggling overflow: hidden on html via DevTools the gap disappears until I scroll again in the list and reach either the top or bottom end.

@diachedelic
Copy link
Collaborator

This looks very much like a bug in Firefox Mobile - if you can find a workaround we might be able to use it.

@fernyherrera
Copy link

Still seeing the issue, any updates or possible work around?

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