0

On phones, my "Section Menu" closes by itself after the user opens and starts scrolling. I'm using a Zurb Foundation Accordion for the menu. Does anyone know why this is happening on mobile?

UPDATE: I'm also trying a simple Zurb Foundation Toggler. I'm toggling the ".hide" class. The menus still vanish when the user tries to scroll.

My site: https://deq.utah.gov/communication/public-notices

picture of the menu

1 Answer 1

0

I was using the following script to listen for widow size changes. This helped me show/hide my menu when troubleshooting on a desktop browser. For some reason, mobile was reporting a screen width change on scroll. When I removed this script, my accordion stopped closing by itself.

$(window).width() not the same as media query

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.