#3701 closed defect (bug) (fixed)
Drop down menus do not work on touch devices
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 1.6 | Priority: | normal |
| Severity: | normal | Version: | 1.5 |
| Component: | Core | Keywords: | |
| Cc: |
Description
Posting this, will come up with some solutions. If anyone has suggestions post em.
Change History (6)
#3
@
14 years ago
Tried getting a CSS only fix but nothing worked well.
Javascript fix:
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/Android/i)) ) {
var clicks = '';
jq('#nav li a').live('click', function(e) {
clicks++;
if (clicks == 2){
var el = $(this);
var link = el.attr('href');
window.location = link;
} else {
e.preventDefault();
}
});
}
Note: See
TracTickets for help on using
tickets.
So one way is to tell users to create a custom link for top level tabs that have child links to use a hash as the URL. This is not the best but it's something. I'm testing some JavaScript solutions.