Home › Forums › Air HTML5 Template › Scrolling closes overlay nav. How do I disable this?
- This topic has 6 replies, 2 voices, and was last updated 7 years, 9 months ago by
NickZ.
-
AuthorPosts
-
August 20, 2018 at 5:30 pm #16135
Scrolling closes overlay nav. How do I disable this? Added a long list of item to a sub-nav, but now my user user cannot access any of the lower subnav items as the overlay nav closes when scrolled down. Help!
August 21, 2018 at 2:53 am #16142Hi,
Please find the codes in js/custom.theme.js
window.addEventListener('scroll', function() { if(themeData.body.is('.show_mobile_menu')){ if(themeData.win.scrollTop() > 200){ setTimeout(function() { themeData.body.addClass($post_logo_color); },1000); setTimeout(function() { themeData.body.removeClass('show_mobile_menu');Remove:
themeData.body.removeClass('show_mobile_menu');Regards!
August 28, 2018 at 7:00 pm #16194Thank you! Unfortunately it’s still not 100% correct. This hot-fix doesn’t allow me to view a large sub-list. It gets cut off after 13+ sub li items. Is there away show these items dynamically and not have them cut off?
Hope you can help.
Great design and code BTW!
– Nick
August 29, 2018 at 6:24 am #16197Hi,
Please leave your page URL, I need check the live page, thanks!
August 30, 2018 at 2:52 pm #16210Here you go:… http://thezdravogroup.com/_lab/thezdravogroup.com_5/
I’ve commented out the line 413 on custom.theme.js and it still not working. It also added a twitching result on the menu items in Chrome Version 68.0.3440.106.
Any help would be deal.
Thanks in advance
August 31, 2018 at 1:01 pm #16221Hi,
Please remove the codes also line 422-426 js/custom.theme.js:
if($('#navi-wrap .sub-menu').length) { $('#navi-wrap .sub-menu').velocity("transition.fadeOut"); $('#navi-wrap .sub-menu').siblings('a').css('display','inline-block'); $('#navi-wrap > ul > li').velocity("transition.fadeIn"); }September 12, 2018 at 6:26 pm #16395This reply has been marked as private. -
AuthorPosts
- You must be logged in to reply to this topic.
