Hi there,
I may have lead you astray with the double clicking problem. That isn’t the main problem so forget about that.
I have recorded a video. At the start I show you how the button works correctly when in portrait mode, press the button, menu expands, click on a new page, it loads with the menu collapsed, which is what anyone would expect. You will see when I switch to landscape that the menu is expanded and hides the screen content until the button is pressed to close it. With every new page that I load, the menu is expanded and has to be clicked to hide. I am never sure which page I am on until the menu is clicked to hide it. This is the problem.
Even switching from portrait to landscape opens the menu without having pressed the burger button. If the menu is closed in portrait and I switch to landscape the menu expands open. Closes again when going back to portrait. The reverse happens if the menu is expanded in portrait…go to landscape and it’s closed. Whatever position the menu is in in portrait, swapping to landscape does the opposite.
I just want to button to behave as it does in portrait mode, this is correct. How it behaves in landscape is the problem. If I remove the code supplied in this thread the burger button doesn’t do anything in landscape mode.
I hope I am making sense?
Burger Button Problem
Many thanks again,
Paul