I have used the jQuery and hoverIntent plugin many times for dropdown menus and advanced navigation, which should be a little more elegant. But I ran into a problem.
I have a menu with an interactive li element that also has a hang. If someone clicks on it before the intent timer fires, I want to unbind it only because it looks better.
I canβt understand how, at first, the designer, the encoder is the second. This is what the intention calls:
$('#navigationContainer ul li').hoverIntent(configDown);
He got a configDown variable that defines sensitivity, etc. And two functions called slideUp and slideDown. Everything works perfectly.
If someone clicks on the same element, I want to cancel hoverIntent. Any help would be appreciated.
source
share