CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   How to call this custom function on a swipe event (http://www.codingforums.com/showthread.php?t=288502)

m2244 02-28-2013 06:50 PM

How to call this custom function on a swipe event
 
1 Attachment(s)
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());
                }
        });



All times are GMT +1. The time now is 07:36 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.