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

Hover intent #13

Open
Eugene1984 opened this issue Dec 28, 2016 · 1 comment
Open

Hover intent #13

Eugene1984 opened this issue Dec 28, 2016 · 1 comment

Comments

@Eugene1984
Copy link

Hi thank you for an awesome megamenu!

Any way to make it hoverintent on hover on and off?
Reason is sometimes when you go to an item in the opened megamenu you accidentally touch an element next to it then menu disapeares and the item you touched opens.

Example: http://www.allgreen.co.za/

I installed: https://github.com/briancherne/jquery-hoverIntent

And changed
$(".menu > ul > li").hoverIntent(function (e) {
if ($(window).width() > 943) {
$(this).children("ul").stop(true, false).fadeToggle(150);
e.preventDefault();
}
});

Tx!

@marioloncarek
Copy link
Owner

Hello! Thanks for kind words!

I need to try to make an example i cant tell you anything until that. Of course everything is possible. Here is just an idea: why dont you try and use jquerys native delay function and with that you could remove the hoverintent library. That would be my first try

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

No branches or pull requests

2 participants