Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

Last modified 9 years ago

#3701 closed defect (bug) (fixed)

Drop down menus do not work on touch devices

Reported by: modemlooper's profile modemlooper 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)

#1 @modemlooper
13 years ago

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.

#2 @boonebgorges
13 years ago

  • Milestone changed from Awaiting Review to 1.6

#3 @modemlooper
13 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();
			}
	});
}
Last edited 13 years ago by modemlooper (previous) (diff)

#4 @DJPaul
13 years ago

Let's rip out BP-Default's entire nav menu CSS and re-implement so it works.

#5 @djpaul
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5509]) Update BP-Default's nav menu to work on touchscreens, and fix text-indent problem with nested menu items. Fixes #3701

#6 @DJPaul
9 years ago

  • Component changed from General - UX/UI to Core
Note: See TracTickets for help on using tickets.