File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,8 @@ function addBottomSwipeListener() {
313313 if ( direction == 'up' ) {
314314
315315 // if swiped up and bottom float isn't expanded
316- if ( swiped && ! bottomWrapper . classList . contains ( 'expanded' ) ) {
316+ if ( swiped && ! bottomWrapper . classList . contains ( 'expanded' )
317+ && ! bottomFloat . classList . contains ( 'file-open' ) ) {
317318
318319 swiped = false ;
319320
@@ -339,7 +340,8 @@ function addBottomSwipeListener() {
339340 } else if ( direction == 'down' ) {
340341
341342 // if swiped down and bottom float is expanded
342- if ( swiped && bottomWrapper . classList . contains ( 'expanded' ) ) {
343+ if ( swiped && bottomWrapper . classList . contains ( 'expanded' )
344+ && ! bottomFloat . classList . contains ( 'file-open' ) ) {
343345
344346 swiped = false ;
345347
You can’t perform that action at this time.
0 commit comments