Mobile Menu requires long click on chrome on android
I'd consider this a bug as the UX makes the menu seem broken to non technical users.
The drop down menu requires a long press instead of a tap.
To recreate, use chrome as an android Galaxy .
-
vendor/magento/magento2-base/lib/web/mage/menu.js needs a fix. You can download a fixed version at https://bsdadmin.com/downloads/menu.js
Take a look at lines starting at 440
// if (!target.hasClass('level-top') || !target.has('.ui-menu').length) {
// window.location.href = target.find('> a').attr('href');
// }
// DAS 20221218 Fixed Menu on Android
if (!target.hasClass('level-top') || !target.has('.ui-menu').length) {
window.location.href = target.find('> a').attr('href');
} else {
this.select(event);
// Open submenu on click
if (target.has('.ui-menu').length) {
this.expand(event);
}
}
Please sign in to leave a comment.
Comments
2 comments