Open Bug 1834390 Opened 3 years ago Updated 3 years ago

text selection blocks mouse events

Categories

(Core :: DOM: Selection, defect)

Firefox 113
defect

Tracking

()

UNCONFIRMED

People

(Reporter: z-5, Unassigned)

Details

Steps to reproduce:

I have a mouseleave event on a text element. I do mousedown and select a piece of text. When I leave an element during selection, I want the mouseleave event to fire to call removeAllRanges().

Actual results:

The expected mouseleave event does not execute. No other hooked event is executed either until mouseup is executed.

Expected results:

In other Edge browsers, Google Chrome, when you leave an element while selecting text, the mouseleave event and every other event fires. This allows you to stop selecting unnecessary content and continue selecting, for example, entire table cells. Leaving an element is supposed to execute removeAllRanges() and change the selection method to its own, not built-in. The introduced blockade is very flustering and not understandable. There is no way around this and the site should work the same across browsers. Adapt to others.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Selection' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Selection
Product: Firefox → Core
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.