r/Devvit • u/BobbaGanush87 • 19d ago
Bug [Android] A fast scroll back up from the comments gets pushed back down past a Devvit post, unless the post was tapped first.
In the Reddit Android app, a fast scroll back up from the comments of a post with an inline Devvit Web view gets pushed back down into the comments instead of reaching the top. If you tap the web view once before scrolling down, it doesn't happen.
Steps to reproduce
- Open this game thread post in the Android app. Don't touch the post's web view.
- Scroll well down into the comments.
- Swipe back up quickly, several times in a row.
- As the post comes back into view, the scroll gets pushed back down into the comments instead of reaching the top.
Expected Behavior
The scroll reaches the top of the post. It does if you tap the web view once (anywhere on it, not just on a button) before step 2.
What we've ruled out
- The page itself can never scroll: `html, body { overflow: hidden; overscroll-behavior: none; }`.
- A tap anywhere on the web view prevents it, so it isn't our click handlers. We add no touch listeners of our own.
Desktop information
Not affected. This only happens in the Android app.
Mobile information
- Device: Pixel 10 Pro
- Operating system: Android 17
- Browser or app: Reddit
- Version: 2026.45.0
Additional context
- Devvit 0.15.2. Post height is set with `setCustomPostStyles({ heightPixels })`, 200–330px.
- iOS: not tested.
- The page itself can never scroll: `html, body { overflow: hidden; overscroll-behavior: none; }`.
- A tap anywhere on the web view prevents it, so it isn't our click handlers. We add no touch listeners of our own.
- Our guess: the first tap gives the WebView Android view focus. Without it, the WebView seems to take focus when it's reattached on the way back up, after being scrolled far off screen. The list then cancels the fling to bring the focused view on screen. That would explain why one tap prevents it.
Is there anything we can do on the web side until this is fixed?
•
u/flair-auto-responder 19d ago
Bug report requirements
Hi u/BobbaGanush87!
We require all bug submissions to include the following information. Please make sure you’re following this format, or your post may be removed:
Describe the bug
Provide a clear and concise description of the bug.
Steps to reproduce
Expected behavior
Explain clearly what you expected to happen instead.
Screenshots or recordings
If applicable, include screenshots or a screen recording that demonstrates the problem. Please remove any sensitive or personal information first.
Desktop information
Mobile information
Additional context
Add any other details that might help reproduce or diagnose the problem.
You can edit your post to add any missing information.
Post: https://www.reddit.com/r/Devvit/comments/1xwjr09/android_a_fast_scroll_back_up_from_the_comments/