Zoom level of devtools can affect expand on hover rect for vertical tabs
Categories
(Firefox :: Sidebar, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: mconley, Assigned: sfoster)
References
Details
(Whiteboard: [fidefe-sidebar])
Attachments
(2 files)
STR:
- Enable vertical tabs, with expand on hover enabled to true
- On any page, open up browser devtools (not the Browser Toolbox, the in-page developer tools), via F12
- With the devtools focused (perhaps by clicking on the text area in the console), increase the zoom level to maximum by holding Ctrl and + (or Cmd and + on macOS)
- With the devtools zoomed, move the mouse cursor over top of the inspect button in the top left of the devtools
ER:
The vertical tabs should only expand when the vertical tab strip is hovered.
AR:
With a high enough zoom level, just passing over the inspect button's halfway point seems to be enough to trigger it.
See attached video.
| Reporter | ||
Comment 1•6 months ago
|
||
The workaround is to reset the zoom level of the devtools to the default with Ctrl / Cmd + 0
Comment 2•6 months ago
|
||
Hi Nicholas. We wondering if you've seen similar issues or have any ideas on a fix for this? Thanks!
Updated•6 months ago
|
Comment 3•6 months ago
|
||
(In reply to Nikki Sharpley (:nikkis) (she/her) from comment #2)
Hi Nicholas. We wondering if you've seen similar issues or have any ideas on a fix for this? Thanks!
I thought we had something similar in the past, but I can't find a bug that would describe the same situation :/
Updated•5 months ago
|
Updated•5 months ago
|
Updated•4 months ago
|
| Assignee | ||
Comment 4•4 months ago
|
||
I'll take a look into this.
| Assignee | ||
Comment 5•4 months ago
|
||
It looks like the event.screenX and event.screenY values we get in handleEvent are pre-scaled using the target's devicePixelRatio. In this case, although the currentTarget is the ChromeWindow, the event.target is a devtools inspector element so everything gets scaled by its dpr which is 4 (max zoom level). At this point, subtracting window.mozInnerScreenX doesn't make any sense - these are different coordinate spaces.
| Assignee | ||
Comment 6•4 months ago
|
||
Comment 8•4 months ago
|
||
| bugherder | ||
Updated•3 months ago
|
Description
•