Skip to content

Commit ff83b57

Browse files
authored
Update live-view.js
1 parent 42d9457 commit ff83b57

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

live-view/live-view.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)