Figure out desired behaviour of dynamic toolbar transition when zoomed in
Categories
(Core :: Panning and Zooming, defect, P3)
Tracking
()
People
(Reporter: hiro, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Attaching file is an example to see the issue, to reproduce the issue;
- Open the attachment
- Pinch zoom in as possible
- Scroll to right bottom of the content
- Try to scroll upward slowly, thus you can see the dynamic toolbar at bottom, but a gray position:fixed element will be covered by the toolbar instead of moving along with the bar.
Reporter | ||
Comment 1•5 years ago
|
||
I think we should use GetCurrentAsyncTransform() instead of GetPresShellResolution() but I haven't found a way to obtain a correct value there. Anyways, with this patch the position:fixed element moved much better, but still looks something wrong.
Comment 2•5 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #0)
- Try to scroll upward slowly, thus you can see the dynamic toolbar at bottom, but a gray position:fixed element will be covered by the toolbar instead of moving along with the bar.
Why is "moving along with the bar" the desired behaviour?
When we are zoomed in, the visual viewport is smaller than the layout viewport. Fixed elements are attached to the layout viewport. When you scroll up, the visual viewport's bottom edge moves away from the layout viewport's bottom edge, so we expect the fixed element to scroll out of view.
Reporter | ||
Comment 3•5 years ago
|
||
Hmm, that's fair enough. So maybe we need to do somewhat different in the case where the visual viewport differs from the layout viewport there?
Also, to be fair, the behavior on Chrome looks also broken in a different way.
Comment 4•5 years ago
|
||
It's not entirely clear to me what the desired behaviour is, but in any case this seems like an edge case interaction between zooming and the dynamic toolbar.
Updated•5 years ago
|
Reporter | ||
Updated•3 years ago
|
Updated•2 years ago
|
Description
•