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

HoverInit delay 0 does not trigger hoverenter if immediately moused out #57

Closed
justinbmeyer opened this Issue Oct 10, 2012 · 0 comments

Comments

Projects
None yet
2 participants
@justinbmeyer
Member

justinbmeyer commented Oct 10, 2012

If I have code like:

hoverinit: function(){
  this.delay(0)
  $("#someelement").show();
}.
hoverenter: function(){
  console.log("Called")
}

where #someelement hides the to-be-hovered element, a mouseleave is immediately triggered before the hovered flag is set.

If the user is setting delay to 0, they most likely want to be using leave this.leave(2000) and want a hoverenter no matter what.

The fix is to recognize this as a special case and always fire hoverenter and set hovered to true.

@ghost ghost assigned daffl Oct 10, 2012

@daffl daffl closed this in 9cfa703 Nov 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment