Menu: Fixed several issues with the mobile menu and optimized the code (fixes #3982, #3983, #3984 and #3986)
Merge pull request #3998 from pjackson28/fixmobilepanel

Menu: Fixed several issues with the mobile menu and optimized the code (fixes #3982, #3983, #3984 and #3986)