You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
gesture_navigation.py: increase small swipe sensitivity
This commit is contained in:
@@ -60,7 +60,7 @@ def _back_swipe_cb(event):
|
||||
if backbutton_visible:
|
||||
backbutton_visible = False
|
||||
smooth_hide(backbutton)
|
||||
if x > min(100, get_display_width() / 4):
|
||||
if x > get_display_width() / 5:
|
||||
back_screen()
|
||||
elif is_short_movement(dx, dy):
|
||||
# print("Short movement - treating as tap")
|
||||
@@ -98,7 +98,7 @@ def _top_swipe_cb(event):
|
||||
smooth_hide(downbutton)
|
||||
dx = abs(x - down_start_x)
|
||||
dy = abs(y - down_start_y)
|
||||
if y > min(80, get_display_height() / 4):
|
||||
if y > get_display_height() / 5:
|
||||
open_drawer()
|
||||
elif is_short_movement(dx, dy):
|
||||
# print("Short movement - treating as tap")
|
||||
|
||||
Reference in New Issue
Block a user