View Single Post
08-22-14, 02:46 PM   #11
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Dolby View Post
Will have to research if there is a way to fix this.
I use the following with Modernizr and jQuery to fix hover dropdowns on several sites I manage:

Code:
if (Modernizr.touch) {
	$('#menu [aria-haspopup] > a').attr('href', '#');
}
The top-level links are already duplicated in the dropdown, so this doesn't actually render any links inaccessible. The lack of a valid href attribute is also why the author and user dropdowns already work on mobile devices.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote