Closed
Bug 828345
Opened 11 years ago
Closed 11 years ago
Fixed position elements jitter when snapping back from zooming out beyond page bounds
Categories
(Firefox for Android Graveyard :: Toolbar, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 21
People
(Reporter: cwiiis, Assigned: cwiiis)
Details
Attachments
(1 file)
1.60 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
If you zoom out so that there is blank area on both sides of an axis, then let go, there are usually a few frames where the fixed position elements will appear to jump position. This is because the clamping scroll-port does not maintain aspect ratio in these situations. Patch incoming.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #699824 -
Flags: review?(bugmail.mozilla)
Comment 2•11 years ago
|
||
Comment on attachment 699824 [details] [diff] [review] Maintain clamping scrollport aspect ratio Review of attachment 699824 [details] [diff] [review]: ----------------------------------------------------------------- LGTM ::: mobile/android/chrome/content/browser.js @@ +3134,5 @@ > let [pageWidth, pageHeight] = this.getPageSize(this.browser.contentDocument, > viewportWidth, viewportHeight); > + > + let factor = Math.min(viewportWidth / gScreenWidth, pageWidth / gScreenWidth, > + viewportHeight / gScreenHeight, pageHeight / gScreenHeight); I would prefer renaming "factor" to "scrollPortAspectRatio" or adding a comment. Also I didn't know Math.min could take an arbitrary number of arguments, cool!
Attachment #699824 -
Flags: review?(bugmail.mozilla) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Added comment, pushed to inbound: https://hg.mozilla.org/integration/mozilla-inbound/rev/1f3d5f4cc05c
Comment 4•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1f3d5f4cc05c
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 21
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1f3d5f4cc05c
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1f3d5f4cc05c
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•