Okay
  Public Ticket #1245171
Mobile nav closes when scrolling on ipad
Closed

Comments

  • bustoutsolutions started the conversation

    I have my mobile breakpoint set to 1100 in the theme to give me mobile nav (hamburger menu) on the iPad in landscape mode. I'm doing this because my menus are dropdowns and the iPad doesn't handle hovers. 

    This works but when I scroll in landscape mode on the iPad the menu disappears. This only happens in landscape mode and only on the iPad.

    I fixed this bug by modifying the addOrRemoveSF function on line 1315 in init.js. This function was doing a test to see if the nav should close but the test is hardcoded to the default breakpoint value of 1000.

    Although I've got this fixed I wanted to report it and also see how I should fix it long term. If I upgrade the theme my fix will be wiped out. How do you recommend I deal with this? Can I use the child theme to modify the init.js file?

  •  9,013
    Tahir replied

    Hey ,

    Thanks for pointing out the bug . Have noted to have the developer fix this in upcoming updates so you dont have to apply the fix . 

    Thanks 


    ThemeNectar Support Team