Option-drag (or ALT-drag) selection on link text should not trigger click event
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
People
(Reporter: saj, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0
Steps to reproduce:
On a Mac, hold down the Option key, then drag-select over some link text.
(I think the equivalent on Windows, Linux, and BSD is the ALT key.)
Actual results:
Firefox fires a click event.
Expected results:
Firefox does not fire a click event.
https://jsfiddle.net/7kzmxs4g/
Compare behaviour between the link text and regular (unlinked) text. Behaviour is contradictory.
Chrome 118.0.5993.117 does not fire the click event in either case.
Updated•2 years ago
|
(In reply to saj from comment #1)
My apologies, that fiddle was defective. Here is another one.
https://jsfiddle.net/7s301e4q/
Chrome suppresses the click event when an option-drag is performed on the link.
Chrome does not suppress the click event when a drag is performed on other elements.
In other words, the two browsers differ in their treatment of this action on link text only.
Comment 3•2 years ago
|
||
I can reproduce the issue on Nightly121.0a1 Windows10, and even Firefox60ESR.
So, this is not a recent regression.
Updated•2 years ago
|
Description
•