Skip to content
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

[PointerEvent algorithms] Order of boundary events #519

Open
mustaqahmed opened this issue Sep 17, 2024 · 2 comments
Open

[PointerEvent algorithms] Order of boundary events #519

mustaqahmed opened this issue Sep 17, 2024 · 2 comments
Labels

Comments

@mustaqahmed
Copy link
Member

mustaqahmed commented Sep 17, 2024

When the mouse pointer moves from element A to element B, how does a browser determine the sequence of boundary events (enter, leave, over, out) to fire?

Problem

PointerEvents boundary event (enter, leave, over, out) dispatch is not defined, and the corresponding dispatch mechanism in UIEvents Section 3.4.4. Mouse Event Order is example-based without a precise definition text.

Possible solution

Fix w3c/uievents#383, then override that in PointerEvents into three different methods (one per pointer type) each with a corresponding state for "element under current primary pointer".

@mustaqahmed
Copy link
Member Author

FYI: @garykac @flackr @smaug----

@smaug----
Copy link
Contributor

https://w3c.github.io/uievents/#handle-native-mouse-move-id has some of this defined in an algorithmic way for mouse events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants