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

onMouseEnter target/relatedTarget incorrect #785

Closed
matthewwithanm opened this issue Jan 2, 2014 · 3 comments · Fixed by #789
Closed

onMouseEnter target/relatedTarget incorrect #785

matthewwithanm opened this issue Jan 2, 2014 · 3 comments · Fixed by #789

Comments

@matthewwithanm
Copy link
Member

It seems like the target and relatedTarget properties of the synthetic "mouseenter" event are reversed. (The target should be—but isn't—the element being entered.) I'm not familiar enough with the code to know how it's supposed to work, but it seems like the wrapped native event is a "mouseout" event and the properties are never being swapped to account for that fact.

Here's a reduced test case:
http://jsfiddle.net/matthewwithanm/sVmer/

@matthewwithanm
Copy link
Member Author

@spicyj Nice! Should the type also be set?

@sophiebits
Copy link
Collaborator

See #772. :)

@matthewwithanm
Copy link
Member Author

(:

yungsters added a commit that referenced this issue Jan 7, 2014
Set target properties explicitly for enter/leave
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

Successfully merging a pull request may close this issue.

2 participants