From 2bf43990ba646ec37fca13aec6a33d39fe0358bb Mon Sep 17 00:00:00 2001 From: scottjehl Date: Sat, 11 Sep 2010 07:26:07 -0400 Subject: [PATCH] changed body swipe to swipe right and namespaced it as swiperight.jqm --- js/jQuery.mobile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/jQuery.mobile.js b/js/jQuery.mobile.js index f4607b5a..248e4160 100644 --- a/js/jQuery.mobile.js +++ b/js/jQuery.mobile.js @@ -384,8 +384,8 @@ }); }; - //swipe left always triggers a back - $(document).swipeleft(function(){ + //swipe right always triggers a back + $('body').bind('swiperight.jqm',function(){ history.go(-1); return false; }); @@ -455,7 +455,7 @@ $window.trigger( "hashchange" ); //... this shouldn't be needed, but chrome isn't getting it sometimes - setTimeout(function(){ pageLoading(true); }, 3000); + //setTimeout(function(){ pageLoading(true); }, 3000); //update orientation updateOrientation();