[Plugin: Black Studio Touch Dropdown Menu] Detect second click outside of clicked menu item?
-
An interesting plugin, tested with Android 4.0.4 stock browser and a Twenty Ten child theme, works fine, thanks.
Idea for enhancement for the author or interested readers:
If the second touch/click (after the submenu is opened with the first) is somewhere outside of the menu area, the submenu closes again. In this case
$this.data('dataNoclick')
is not reset. Another touch/click on top menu then opens the url instead of the submenu.Maybe it is possible to add some mechanism like
$(document).one('click', function() {..
or similar with a certain condition in js or some css:not
selector as param of.one()
or similar after the first touch/click, and reset all thedataNoclick
from there to catch the above situation?Sounds complicated, but maybe you come up with a nice solution.
https://www.ads-software.com/extend/plugins/black-studio-touch-dropdown-menu/
- The topic ‘[Plugin: Black Studio Touch Dropdown Menu] Detect second click outside of clicked menu item?’ is closed to new replies.