Here's the situation:
- My menu expands when the screen resolution is greater than 1024
- When the resolution is less than 1024, the menu becomes a drop-down navigation
I'm using Modernizr.mq to trigger the JavaScript for the drop-down menu when the resolution is smaller than 1024.
Everything works fine when the page is refreshed without resizing the browser. However, if you resize the browser and try the menu again, it starts to bug out and gets triggered multiple times.
Check out the full page example here:
http://codepen.io/MarioD/full/aKdhG
And here is the example with the code:
http://codepen.io/MarioD/pen/aKdhG
Any thoughts on why the click function goes haywire when the browser is resized? Is there a way to fix this issue?
Thank you, Mario