• Hi all:
    At https://infantproctocolitis.org, the “Health Professionals” menu has a submenu containing 2 links.
    I used the script below (doubletaptogo by Osvaldas Valutis) to get the submenu to work on mobile devices, but on iOS, the links on the submenu do not work (works correctly on Android).
    Anyone know how to fix this?
    Thanks much.
    ——————————————————

    ;(function( $, window, document, undefined )
    {
    	$.fn.doubleTapToGo = function( params )
    	{
    		if( !( 'ontouchstart' in window ) &&
    			!navigator.msMaxTouchPoints &&
    			!navigator.userAgent.toLowerCase().match( /windows phone os 7/i ) ) return false;
    
    		this.each( function()
    		{
    			var curItem = false;
    
    			$( this ).on( 'click', function( e )
    			{
    				var item = $( this );
    				if( item[ 0 ] != curItem[ 0 ] )
    				{
    					e.preventDefault();
    					curItem = item;
    				}
    			});
    
    			$( document ).on( 'click touchstart MSPointerDown', function( e )
    			{
    				var resetItem = true,
    					parents	  = $( e.target ).parents();
    
    				for( var i = 0; i < parents.length; i++ )
    					if( parents[ i ] == curItem[ 0 ] )
    						resetItem = false;
    
    				if( resetItem )
    					curItem = false;
    			});
    		});
    		return this;
    	};
    })( jQuery, window, document );

Viewing 4 replies - 1 through 4 (of 4 total)
  • Where did you download this theme from?

    Thread Starter pixeldroid

    (@pixeldroid)

    Thanks for the quick reply.
    I hired someone to develop it.
    I realize that the site is has a number of major problems, but I’m not a wordpress guy (but I’m geeky enuf to install a fix if someone can tell me what it is). I plan to redo it in HTML5 at some point, but as you can see it has proven to be very beneficial to people (12K hits in a just a couple months), so I’d like to get it working for now.

    As this is a custom theme, you really need to speak to the person who developed it for you.

    Thread Starter pixeldroid

    (@pixeldroid)

    Unfortunately, that is not going to happen.
    The site was a public service from my end and I think the developer bit off more than he could chew. We were thankful to get something that works.
    I don’t think the fix is difficult. DoubleTapToGo.js got the submenu working on Android (and displaying on iOS). I just need to find out how to address the issue further on iOS.
    Hopefully somebody who has already figured this out will read this and reply.
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Submenu links not working on IOS’ is closed to new replies.