Hi,
I had to stick my mobile menu to the top of the page to keep it visible when I scroll down.
When I click the menu it opens as expected, but my problem is that the scroll also jumps all the way to the top of the page.
Is there a way to prevent it from jumping to the top of the page every time I click on the menu?
I tried to add a small jquery function just to “preventDefault” on click, but had no effect.
Thanks
Hi,
Can you post the link to your website please?
Regards,
Josue
Hi,
I’m not sure it’s necessary, just because this is the default behaviour of the theme :) If you open http://kriesi.at/themes/enfold/ and shrink the window to a tablet size, you’ll see the sticky mobile menu. Now if you scroll down and then click the menu icon, the scroll will instantly jump to the top as the menu opens, which creates the weird effect I’m trying to get rid of!
And if you close the menu afterwards, you can confirm that you are indeed at the top of the page.
Thx!
Hey!
That is intended as mobile menu shows menu items at the top of the page. If it was not auto scrolled to top when you click to open mobile menu, you would need to scroll manually :)
Best regards,
Yigit
Oh I see. But is there a way to disable the “jump to top” anyway?
I’ll be editing the menu animation if necessary, so that wont be an issue
Thanks
Yea i can see what you’re referring to, changing this would require re-factoring the avia_responsive_menu
function (avia.js), unfortunately we can’t really help with that but i’d suggest you posting your request here so Kriesi can see it:
Best regards,
Josue
Understood, thanks