View Single Post
Old 02-28-2013, 06:50 PM   PM User | #1
m2244
Regular Coder

 
Join Date: Jun 2012
Posts: 127
Thanks: 1
Thanked 1 Time in 1 Post
m2244 is an unknown quantity at this point
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
File Type: zip cusom_jquery_mobile.zip (17.4 KB, 22 views)
m2244 is offline   Reply With Quote