Skip to content

Embedded video fullscreen exit shifts article scroll near bottom #82

Description

@johan456789

Repro

  1. Open a long article with embedded HTML5 video in WebView
  2. Scroll near bottom (or to bottom) and enter video fullscreen
  3. Exit fullscreen

Actual

Scroll position shifts upward after fullscreen exit (only visible when at/near bottom). Videos at the top or middle didn't have this scroll position jump.

Expected

Scroll position should remain stable after exiting fullscreen.

What we measured

Instrumented logs around onShowCustomView / onHideCustomView show WebView scroll range shrink on exit:

  • top case: 0/24568 -> 0/23980 (max -588, no visible jump)
  • middle case: 12861/24568 -> 12861/23980 (max -588, no visible jump)
  • bottom case: 24568/24568 -> 24001/24001 (clamped by -567, visible upward shift)

So the max-scroll change happens in all cases; visible movement occurs when current position is at old max and gets clamped to the new max.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp3

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions