-
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
pointerenter vs. pointerleave dispatch sequence #283
Comments
i don't believe the exact order is normatively defined beyond what it says in https://w3c.github.io/pointerevents/#compatibility-mapping-with-mouse-events (which itself is an optional feature). i think divergence in this case is reasonably safe as i would hope no code in the wild would rely/do anything with the exact order of pointer event and compat events |
I'm not sure if I fully understood the title of this bug compared to what the WebKit bug #198036 talks about. The Webkit bug talks about this other spec issue. I assume the discussion there was acceptable. |
@NavidZ I see how this could be confusing. But this spec issue is indeed relevant, if I filter out the mouse events, the sequences are: In STP 82:
In Chrome and Firefox:
Notice how STP goes from bottom to top while Chrome and Firefox go into the other direction. But @patrickhlauke seems to say that this shouldn't matter. |
@patrickhlauke was referring to the compatibility mouse events part of it and it should not matter. In terms of the ordering of the enter and leave events when there is a nested set of nodes I believe the UI events spec link I gave is normative. It seems Webkit doesn't follow that for mouse events either. I think whatever we do we should do the same for mouseevents and pointerevents. |
Thanks for the link @NavidZ, this makes me think that we should fix this in WebKit for both mouse events and pointer events. |
@graouts if you are planning to fix Webkit here is there anything else remains for this issue? Can we close it? |
Yes. |
I'm working on the WebKit implementation of Pointer Events and found this discrepancy in the tree order in which
pointerenter
andpointerleave
events are dispatched between WebKit and Chrome/Firefox. See WebKit bug #198036.I couldn't find where the Pointer Events spec normatively defines the tree order for dispatch of those events. Could someone point me to it? If it doesn't exist, should we be worried about the potential divergence in implementation?
The text was updated successfully, but these errors were encountered: