Skip to content

Commit e74f0ae

Browse files
authored
Fixed issue of "oversensitive swipe" #3160. PR as suggested by Shai in Reddit (#3596)
1 parent 68dabb4 commit e74f0ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodenameOne/src/com/codename1/ui/SwipeableContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ public void actionPerformed(ActionEvent evt) {
431431
open = true;
432432
close();
433433
}
434-
} else {
434+
} else if (topX < 0) { //check explicitly if opened to the left
435435
if (Display.getInstance().getDragSpeed(false) > 0) {
436436
open = false;
437437
openedToLeft = false;

0 commit comments

Comments
 (0)