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

Removing the element being hovered prevents all future hoverenter #64

Closed
iamnoah opened this issue Nov 30, 2012 · 0 comments
Closed

Removing the element being hovered prevents all future hoverenter #64

iamnoah opened this issue Nov 30, 2012 · 0 comments

Comments

@iamnoah
Copy link
Contributor

@iamnoah iamnoah commented Nov 30, 2012

See http://jsfiddle.net/qAFSX/3/. Remove an element that is being hovered, and nothing will ever be hovered again.

An easy partial fix is to have the hover plugin bind to destroyed and mouseleave, although there is still some weird behavior if the element is detatch()ed, and if the element is not reattached, no hover events will trigger until it is.

iamnoah added a commit to SpredfastLegacy/jquerypp that referenced this issue Dec 5, 2012
If the mouse has entered a new element, this change forces the hoverleave event to fire on the previously hovered element, even if no mouseleave event fires.

The mouseleave event will not fire if the element is removed while hovered and possibly in other circumstances.
daffl added a commit that referenced this issue Feb 6, 2013
Force hover leave on new mouseenter. Fixes #63 and #64.
@daffl daffl closed this Feb 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.