Closed Bug 1899704 Opened 6 months ago Closed 4 months ago

When inspecting some "pointer-events: none" elements in a page, pressing shift should change the behavior without waiting for mousemove

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(firefox130 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: julienw, Assigned: nchevobbe)

Details

Attachments

(2 files)

Attached file layers.html

STR:

  1. Open the attachment.
  2. Open the Inspector devtool.
  3. Click the "inspect element" button.
  4. try to target the green square. => this doesn't work because it has pointer-events: none.
  5. press shift without moving the mouse => still doesn't work
  6. move the mouse just a little bit => now the green square is selected

IMO it should be selected at step 5 already.

BTW the same happens when releasing "shift".

Severity: -- → S3
Priority: -- → P3

Holding shift allows to retrieve elements under the cursor, even the ones that
don't consume pointer events.
Pressing/releasing the Shift key will now update the highlighted node directly,
without the user moving the mouse again.
A test case is added to cover this behavior.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fdc0ac8a2cc0 [devtools] key(down|up) on Shift while picking should update the picker options immediately. r=devtools-reviewers,jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
QA Whiteboard: [qa-130b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: