So, the expected mobile behavior with dropdowns in the menu is that the first touch will open the dropdown, and the second touch will visit the link.

On iOS (any browser), this works! On Android (any browser), this fails.

It seems that iOS is treating the first touch as a "hover" event, and not generating a click. On Android, it's treating the first touch as both hover and click at the same time, which visits the link right away.

Comments

dsnopek created an issue. See original summary.

dsnopek’s picture

Status: Active » Needs review
StatusFileSize
new1.35 KB

Here's a patch that works in my limited testing, however, it could use a lot more testing!

cboyden’s picture

Status: Needs review » Needs work

Testing on a Panopoly child distribution, this fixes the first submenu level, but does not fix the next level down.

dsnopek’s picture

Status: Needs work » Needs review
StatusFileSize
new2.41 KB

I forgot (and failed to notice) that there are two completely separate code paths for the top-level dropdowns and submenus. This patch copy-paste and modifies the changes to the submenus too. This seems to be working in my testing.

dsnopek’s picture

StatusFileSize
new1.36 KB

And here's and interdiff for #4 that I forgot to upload.

klu’s picture

Updated patch works in our testing, thanks @dsnopek!

dsnopek’s picture

StatusFileSize
new2.93 KB
new1.25 KB

An issue was discovered with this patch where moving the mouse back-and-forth across the menus could cause the menu to "flicker", opening and closing different different dropdowns without interaction. Once this starts the only recourse is to reload the page. This is easiest to cause on Windows with Chrome, but has been done on other platforms as well. For me, if I press TAB while moving the mouse across menus, I can get it to happen really quickly.

Here's an updated patch that fixes this in my testing, but, of course, could use more testing since this is sort of tricky to make happen.

cboyden’s picture

Status: Needs review » Reviewed & tested by the community

Updated patch works fine and no longer causes flicker on our Panopoly child distribution using a custom Radix subtheme.

  • dsnopek committed 528ca65 on 7.x-3.x
    Issue #3079295 by dsnopek, cboyden, klu: First touch on menu dropdowns...
dsnopek’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! Committed :-)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.