Open Bug 1862726 Opened 2 years ago Updated 2 years ago

Option-drag (or ALT-drag) selection on link text should not trigger click event

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

Firefox 121
defect

Tracking

()

UNCONFIRMED

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.

Summary: Option-drag (or ALT-drag) text selection on link text should not trigger click event → Option-drag (or ALT-drag) selection on link text should not trigger click event
Component: Untriaged → DOM: UI Events & Focus Handling
Product: Firefox → Core

(In reply to saj from comment #1)

https://jsfiddle.net/7kzmxs4g/

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.

I can reproduce the issue on Nightly121.0a1 Windows10, and even Firefox60ESR.
So, this is not a recent regression.

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.