I found that using opacity:0 and then opacity:1 on :hover with a CSS3 transition causes the rollover to break on iPad, so I basically just used a mobile detection script in PHP, and then updated my dropdown class to have display:none, and made sure the :hover state had display:block as well as opacity:1.
Guys, here in Europe Android is currently taking between 65 top 75% of market share. These tricks dont work as easily on Android.
Why on earth would one develop for iPhone and forget Android?
You may like iPhone betetr than Android, but if 2/3 of users is using Android, then you are not doing it right.
I checked Jeyloos solution, and on android it doesn behave very logical.
You have to long-press the menu before the dropdown shows.
My opinion is that one should try and avoid submenu’s on pages if possible.
For existing ages you can try Jeyloos technique, but its still not perfect.
Maybe there isa better trick for Android as well?
where is exactly the place, where should I put “onClick=”return true” ?
I use drupal 7 + CorporateClean theme
and my menus do not drop down on Ipads
unforunately I do not know anything about js
The demo is a very basic css dropdown menu. I’ve used pointer-events to prevent the nav link being clickable except for on the iPad, where I’ve used media queries restricted by the iPads exact dimensions to allow clicking through.
Issues to overcome:
* pointer-events won’t work on IE so the link will be clickable.
* On iPad after opening the dropdown the link will be clickable.
* If there’s another touch device with the same dimensions it will be affected.