r/Devvit • • 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

  1. Open this game thread post in the Android app. Don't touch the post's web view.
  2. Scroll well down into the comments.
  3. Swipe back up quickly, several times in a row.
  4. 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?

3 Upvotes

1 comment sorted by

•

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

  1. Go to “…”
  2. Click or tap “…”
  3. Scroll to “…”
  4. Describe the error or unexpected behavior

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

  • Operating system: [e.g. macOS 15, Windows 11]
  • Browser or app: [e.g. Chrome, Safari, Reddit]
  • Version: [e.g. 22.1]

Mobile information

  • Device: [e.g. iPhone 16, Pixel 10]
  • Operating system: [e.g. iOS 18, Android 16]
  • Browser or app: [e.g. Safari, Chrome, Reddit]
  • Version: [e.g. 22.1]

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/