`FindFrameTargetedByInputEvent()` should always check clickable target even if looking for a touch target
Categories
(Core :: Panning and Zooming, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox139 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file)
In bug 1637908, FindFrameTargetedByInputEvent()
designed for looking only for touch event listening elements for targeting the touch event targets. The reason is explained as:
The heuristics we want for touch events are different and should generally be very conservative, because we almost never want to retarget the raw touch events.
However, Pointer Events now defines that click
event target should be the captured target by the source event and pointerdown
will start implicit pointer capture with its target.
So, if there is a clickable element around the single tap point but FindFrameTargetedByInputEvent()
considers the touchstart
target as an element outside the clickable element, click
event won't be fired on the clickable event target once we align the behavior to the standard in bug 1885232.
Therefore, I think that FindFrameTargetedByInputEvent()
needs to look for clickable
target too even if it looks for the touch target.
Assignee | ||
Comment 1•6 months ago
|
||
Pointer Events now defines that click event target should be the captured target
which is the target of the source event [1] and pointerdown
will start
implicit pointer capture with its target when nobody explicitly sets pointer
capture [2].
Once we will use the standardized behavior in bug 1885232, touch input device
users will become harder to click an element which does not have touch event
listeners because touchstart
event target which is same as the pointerdown
event target is not retargeted and it becomes the following click
event
target.
Therefore, single touch start around clickable element should be retargeted to
the element if there is no touchable element.
Depends on D245685
Comment 3•6 months ago
|
||
bugherder |
Assignee | ||
Comment 4•6 months ago
|
||
It seems that this fix made it easier to tap/click a button next to links. Previously, a single tap was consumed by the link even if I tapped the other side of the button.
Updated•6 months ago
|
Description
•