-
Notifications
You must be signed in to change notification settings - Fork 217
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
Fix double-scroll issue on iOS devices #2728
Conversation
Reviewers changed to folks who own iPhones or MacBooks. |
Size Change: +1.27 kB (0%) Total Size: 839 kB
ℹ️ View Unchanged
|
Full-stack documentation: https://docs.openverse.org/_preview/2728 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested using an iPhone emulator, and the bug when you couldn't see the top of the header when you navigate from the homepage to the search page is fixed - so approving to unblock this.
I think we also need to add dyn-screen
to the default
layout. Also, in the emulator, I can see a white space in the bottom of the homepage. Can you see it on an iphone, @dhruvkb ?
@obulat that white space is likely because of the absence of the soft keyboard. It's not present on the actual phone. |
Nice! So happy that it's not a real problem :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@obulat is right that we need to add this to the homepage, either here or another PR is fine. The bug in question is fixed. Tested in the simulator and on an actual iPhone 12.
I've updated the PR to include the changes to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works great now ✨ 🚀
Update regarding the white space that appears below the page on input focus: That seems to be a Safari thing that cannot be disabled or worked around. Confirmed this to also affect Wikipedia and DuckDuckGo. Other iOS browsers like Arc or Quiche do not suffer from this bug. |
Fixes
Fixes #2683 by @fcoveram
Description
This PR fixes the janky scrolling behaviour on iOS by fixing the order in which the
100vh
and100dvh
heights are applied. On iOS they were being applied in the opposite order of what's desired, leading to the problem.Fixing the order as
100vh
,100dvh
ensures thatdvh
wins, if supported, fixing the issue.Testing Instructions
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin