Skip to content

Commit e77d8ec

Browse files
gesture_navigation.py: increase small swipe sensitivity
1 parent 95baa78 commit e77d8ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal_filesystem/lib/mpos/ui/gesture_navigation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _back_swipe_cb(event):
6060
if backbutton_visible:
6161
backbutton_visible = False
6262
smooth_hide(backbutton)
63-
if x > min(100, get_display_width() / 4):
63+
if x > get_display_width() / 5:
6464
back_screen()
6565
elif is_short_movement(dx, dy):
6666
# print("Short movement - treating as tap")
@@ -98,7 +98,7 @@ def _top_swipe_cb(event):
9898
smooth_hide(downbutton)
9999
dx = abs(x - down_start_x)
100100
dy = abs(y - down_start_y)
101-
if y > min(80, get_display_height() / 4):
101+
if y > get_display_height() / 5:
102102
open_drawer()
103103
elif is_short_movement(dx, dy):
104104
# print("Short movement - treating as tap")

0 commit comments

Comments
 (0)