Skip to content

Commit ad3d210

Browse files
committed
Panel: Made swipe to close work on the whole page and work in either direction
1 parent 7b2fb9d commit ad3d210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/widgets/panel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ $.widget( "mobile.panel", $.mobile.widget, {
107107
return false;
108108
});
109109

110-
$el.on( "swipeleft" , function( e ){
111-
$( this ).panel( "close" );
110+
$page.on( "swipe" , function( e ){
111+
$( ".ui-panel-active" ).panel( "close" );
112112
});
113113

114114
this._trigger( "create" );

0 commit comments

Comments
 (0)