Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 70b79ed

Browse files
Mathew MarquisWilto
authored andcommitted
Restores animation when panel is closed via swipe or keypress.
1 parent 41c6b25 commit 70b79ed

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
@@ -176,7 +176,7 @@ $.widget( "mobile.panel", $.mobile.widget, {
176176
self.element
177177
// on swipe, close the panel (should swipe open too?)
178178
.on( "swipe.panel" , function( e ){
179-
self.close( true );
179+
self.close( );
180180
});
181181
}
182182
self._page
@@ -195,7 +195,7 @@ $.widget( "mobile.panel", $.mobile.widget, {
195195
// on escape, close? might need to have a target check too...
196196
.on( "keyup.panel", function( e ) {
197197
if( e.keyCode === 27 && self._open ){
198-
self.close( true );
198+
self.close( );
199199
}
200200
});
201201
},

0 commit comments

Comments
 (0)