The URL bar hiding/unhiding causes the scroll position to jump around when directly viewing images

NEW
Unassigned

Status

()

Firefox for Android
Toolbar
P3
normal
2 years ago
9 months ago

People

(Reporter: JanH, Unassigned)

Tracking

46 Branch
All
Android
Points:
---

Firefox Tracking Flags

(firefox46 wontfix, firefox47 wontfix, firefox48 wontfix, firefox49 wontfix, firefox50 wontfix, firefox51 wontfix, firefox52 wontfix, firefox53 affected)

Details

(URL)

Comment hidden (typo)
(Reporter)

Comment 1

2 years ago
STR:
1. Open some image directly within Firefox.
2. Zoom in.
3. Scroll up and down, so the URL bar hides/unhides.

Actual:
After the URL bar has become completely hidden/unhidden, the image makes a jump approximately the height of the URL bar in the opposite direction (i.e. if I'm scrolling towards the top of the picture, the viewport jumps back down and vice versa). The jump normally happens as soon as the URL bar has finished animating, although once it only occured after also lifting the finger.

Expected:
No jumping around.

Note:
Images are the most prominent example, but I can also reproduce this with the media controls that are displayed when directly opening e.g. an MP3 file. Normal web pages seem unaffected though.
I can also reproduce this with and without APZ in all current Firefox versions.
status-firefox46: --- → affected
status-firefox47: --- → affected
status-firefox48: --- → affected
status-firefox49: --- → affected
Sample URL on which I can repro this.
Priority: -- → P3
FWIW I suspect this is because the toolbar show/hide resizes the height available to content, and the ImageDocument implementation probably uses that to position the image.
status-firefox46: affected → wontfix
status-firefox47: affected → wontfix
status-firefox48: affected → wontfix
status-firefox50: --- → affected
Version: Trunk → 46 Branch
status-firefox49: affected → wontfix
status-firefox50: affected → fix-optional
status-firefox51: --- → affected
status-firefox50: fix-optional → wontfix
status-firefox51: affected → wontfix
status-firefox52: --- → wontfix
status-firefox53: --- → affected
(Reporter)

Updated

9 months ago
Duplicate of this bug: 1338788
You need to log in before you can comment on or make changes to this bug.