Repro
- Open a long article with embedded HTML5 video in WebView
- Scroll near bottom (or to bottom) and enter video fullscreen
- 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.
Repro
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:
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.