Closed Bug 1633938 Opened 4 years ago Closed 4 years ago

Consider implementing zoom and responsive mode interactions with transform.

Categories

(DevTools :: Responsive Design Mode, enhancement)

enhancement

Tracking

(firefox77 fixed)

RESOLVED FIXED
Firefox 77
Tracking Status
firefox77 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

Right now RDM has a very complex handshake with the UI. As far as I can tell the idea is that zooming in and out provides a "visual zoom" of sorts so you can more closely inspect what you're doing.

Implementing this with transforms completely in the parent would both simplify the code, and avoid jumping when zooming in an out (right now there's a bit of delay since the browser zooms).

I have a WIP that seems to work alright.

Comment on attachment 9144194 [details]
Bug 1633938 - Implement RDM zoom with transform. r=bradwerth

Brad, interested in your feedback.

Here's a try run you can pull builds from (as this needs probably other of my zoom patches): https://treeherder.mozilla.org/#/jobs?repo=try&revision=49376b633bc06c7c3522310e0f5d299e75c078ec

I need some more things in order for this to be reviewable:

  • Fix the pieces of code I deleted and maybe shouldn't.
  • Test the CSS math is right on RTL (no pun intended).
  • Fix / remove tests that are no longer relevant (like the resolution test that has given me so much headache today :)).
  • ... something else?
Attachment #9144194 - Flags: feedback?(bwerth)
Attachment #9144194 - Attachment description: Bug 1633938 - Implement RDM zoom with transform. → Bug 1633938 - Implement RDM zoom with transform. r=bradwerth

Comment on attachment 9144194 [details]
Bug 1633938 - Implement RDM zoom with transform. r=bradwerth

This seems like a clever and workable solution. Thank you for doing this work.

Attachment #9144194 - Flags: feedback?(bwerth) → feedback+
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e690c4cf8848
Implement RDM zoom with transform. r=bradwerth
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/20ac0a62f59d
Implement RDM zoom with transform. r=bradwerth
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 77
Regressions: 1649296
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: