Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Jun 2012
    Posts
    137
    Thanks
    1
    Thanked 1 Time in 1 Post

    How to call this custom function on a swipe event

    Hello,

    Does anyone know how to get this swipe to work reliably? I had it working when I was using the full jQuery mobile version but with this custom jQuery mobile file it doesn't work. I want to get away from the complete jQuery mobile framework because it is invasive and I am only using swipe and maybe 1 or 2 other functions eventually.

    I attached the custom jQuery file in case anyone needs it. I am not sure why this is not working.

    I guess I just need to know how to call the function when a user swipes the screen.

    Code:
    	$('body').live("swipeleft", function(){
    		
    		$('#glossaryToolTip').css({display:'none'});
    		if($(window).width() <= 1024)
    		{
    			goToNext();
    		        alert($(window).width());
    		}
    	});
    Attached Files Attached Files


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •