i have created a menu using jQuery n hoverIntent. You can check it here
http://bit.ly/dnAEtt
To see the problem please, hover One then Two then Three then back to Two (please hover a little fast). All sub-menus will open but sub-menu under Two will not open.
This is a strange behavior, when moving forward sub-menus will open when you will move back (like One to Two to Three to Two, Two to Three to Four to Three and so on)
that sub-menu will not open.
Whats going on there?
Your problem is that the
hoverIntentplugin‘s timeout isn’t happening for another full second, so these calls are leaving things in the wrong state:You actually need to clear the timers and execute the mouseout handler yourself, like this:
I admit it’s a bit messier, but…that’s the result of the plugin not providing a clean method to do this.
You can see the updated/working version here.