When viewing code on a touch device, the page view often teleports to the top of the page #183925
Replies: 12 comments 3 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Here’s a screen recording showing the bug: ScreenRecording_01-10-2026.16-38-21_1.mp4 |
Beta Was this translation helpful? Give feedback.
-
|
After some more experimentation, the bug seems most likely to occur when trying to scroll up. |
Beta Was this translation helpful? Give feedback.
-
|
it also happens in brave on android |
Beta Was this translation helpful? Give feedback.
-
|
A similar scrolling bug also affects the PR/issue search results screen, making that unusable too. |
Beta Was this translation helpful? Give feedback.
-
|
I have the same problem when trying to read the markdown rendering of https://github.com/yijunyu/rust-project-goals/blob/crate-slicing-goal/src/2026h1/crate-slicing.md on both Android Firefox and Android Chrome. |
Beta Was this translation helpful? Give feedback.
-
|
I have found that the teleport bug also triggers when scrolling down from the top of the page. The downward scroll gesture is abruptly interrupted by a viewport jump to near the top of the page. EDIT: This downward-triggered jump can even be seen in the screen recording at https://github.com/orgs/community/discussions/183925#discussioncomment-15460187. |
Beta Was this translation helpful? Give feedback.
-
|
Some more actions that trigger the bug:
I’m starting to suspect that any change in viewport dimensions will trigger the bug. |
Beta Was this translation helpful? Give feedback.
-
|
I'm also seeing this bug. It makes viewing Markdown previews on iPhone or iPad completely unusable. I'm using Safari. |
Beta Was this translation helpful? Give feedback.
-
|
I am experiencing the same issue on chrome on Android |
Beta Was this translation helpful? Give feedback.
-
|
A really annoying and embarrassing bug. I can't read code on Android 16 with latest Firefox anymore. |
Beta Was this translation helpful? Give feedback.
-
|
related: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
When I'm trying to read a source file in a GitHub repository, using the system browser on iPhone or iPad, the page view sometimes jumps back to the top of the page, for no obvious reason.
This bug happens frequently enough that reading code on GitHub has become impossible.
I'm not interacting with the page in any way, other than scrolling up or down to view different parts of it.
EDIT: After some more testing, I'm fairly confident that what actually triggers this bug is any change in window size. It just happens to be very easy to trigger while scrolling on mobile, because most mobile browsers will enlarge or shrink their browser UI (which affects the window size) in response to common scroll gestures.
See this comment for a list of other ways to reliably trigger the bug, which are consistent with the window-resize hypothesis.
Beta Was this translation helpful? Give feedback.
All reactions