mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-23 23:54:43 +00:00
moved $body swipe to domready
This commit is contained in:
parent
f9ac0d95eb
commit
8cde8a084b
1 changed files with 7 additions and 7 deletions
|
|
@ -383,12 +383,6 @@
|
|||
.find('.ui-btn-text').text(backBtnText);
|
||||
});
|
||||
};
|
||||
|
||||
//swipe right always triggers a back
|
||||
$('body').bind('swiperight.jqm',function(){
|
||||
history.go(-1);
|
||||
return false;
|
||||
});
|
||||
|
||||
//dom-ready
|
||||
$(function(){
|
||||
|
|
@ -458,7 +452,13 @@
|
|||
//setTimeout(function(){ pageLoading(true); }, 3000);
|
||||
|
||||
//update orientation
|
||||
updateOrientation();
|
||||
updateOrientation();
|
||||
|
||||
//swipe right always triggers a back
|
||||
$body.bind('swiperight.jqm',function(){
|
||||
history.go(-1);
|
||||
return false;
|
||||
});
|
||||
|
||||
//some debug stuff for the events pages
|
||||
$('body').bind('scrollstart scrollstop swipe swipeleft swiperight tap taphold turn',function(e){
|
||||
|
|
|
|||
Loading…
Reference in a new issue