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 · 1 comment
Open

[PointerEvent algorithms] Order of boundary events #519

mustaqahmed opened this issue Sep 17, 2024 · 1 comment

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".

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

No branches or pull requests

1 participant