-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify what event is userEvent
to consider click
/auxclick
event target after touchend
(or pointerup
)
#508
Comments
Oh, if |
Created a new test which (probably) conforms to current event specs. However, as I mentioned in the commit message, conforming to the test result may break bxSlider. |
Ccing: @mustaqahmed, @smaug----, @flackr |
(FYI: This issue blocks Mozilla fixing the failures of |
Currently, if I change Firefox behavior to conform to the spec, links in this bxSlider deom works, but the originally reported example has gone. Therefore, I don't know whether bxSlider has fixed the issue actually. |
Sorting out the issues:
At least the former breaks a Pointer Event purpose to handle all pointing device inputs with one set of DOM events. |
The note in that section implies (at least to me) that the userEvent is the PointerEvent (i.e. pointerup) whose default action caused the dispatch (excepting keyboard / accessibility means of dispatching clicks):
But I'm not sure I understand the specific differences that are causing problems. Most pages won't be setting pointerCapture so the target of the click event will be the same as it usually is. |
If so, the |
Is this not the same as the pointerup target? Note that touch usually has implicit capture so these would all be the same target AFAIK. |
No if |
If pointerdown captures the pointer to a different element, pointerup should "target" (via capture) that different element too though. |
Yeah, however, both Chrome and Firefox dispatch |
I believe if you try chrome with the |
Well, I assume that it's enabled by default when I run WPT on Chrome from When I run Chrome Canary, I see the following warning in the terminal:
Doesn't |
Ah, yes, it does. That turns on all features with status: experimental in runtime_enabled_features.json5 which it turns out BoundaryEventDispatchTracksNodeRemoval is.
@mustaqahmed could you look into this test case? |
Pointer Events defines that
click
/auxclick
event target is:and
userEvent
is defined as:If you touch the device with a single input,
touchstart
andtouchend
may cause compatibility mouse events,mousemove
,mousedown
andmouseup
. However, web apps consumespointerdown
ortouchstart
, the compatibility mouse events are not fired. Therefore,userEvent
may bepointerup
,touchend
ormouseup
. The compatibility mouse event target is defined as the element at thetouchend
position. Thetouchend
event target is defined as the element which is the target oftouchstart
. So, these events may be targeted different elements. Therefore,click
/auxclick
event target may be different from which event isuserEvent
.The text was updated successfully, but these errors were encountered: