Touch not closing and option to disable and remove code for mobile
-
Hi,
1 – Please put an option to disable and remove the mobile version code if not needed. I solved this temporarily with “Menu themes > Mobile Menu > Responsive Breakpoint > 1px”.
2 – Please include this jquery:
jQuery('body').on('touchstart touchend', function(e) { if(jQuery('.mega-toggle-on').length !== 0){ jQuery('.mega-toggle-on').removeClass("mega-toggle-on"); } });
Solves: the problem: When in mobile with touch mode (desktop menu version in mobile with the low responsive breakpoint), the submenu was not closing, if you click in another element in the page, it keeps opened.
Notify me here please if you liked this. And notify me if you update.
Best regards.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Touch not closing and option to disable and remove code for mobile’ is closed to new replies.