Added class to lock scroll using JS for overlay menu causes issues in tablet landscape orientation
I’ve written some JavaScript to open and close the overlay menu on phone and tablet in portrait mode. It works great on mobile in portrait and landscape. On tablet in portrait mode the menu is the overlay menu opened by clicking the hamburger icon, but the desktop menu bar when in landscape because of Divi’s built in media queries. The issue is if a user opens the overlay menu on tablet and turns their device to landscape with the menu open the class I’ve added to prevent scrolling is still active and locks the screen from scrolling in landscape, even though the overlay menu is not displaying anymore.