From 3f8ef95a43a22d16caa714db79f9f70b59c244b7 Mon Sep 17 00:00:00 2001 From: obrusvit Date: Sat, 20 Apr 2024 17:36:18 +0200 Subject: [PATCH] feat(core/emu): move btn swipe to middle Swipe action initiated by arrow button press now starts in the middle of the screen which should always be in the swipe area. --- core/embed/trezorhal/unix/touch/touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/embed/trezorhal/unix/touch/touch.c b/core/embed/trezorhal/unix/touch/touch.c index be60d8690..f0fc83072 100644 --- a/core/embed/trezorhal/unix/touch/touch.c +++ b/core/embed/trezorhal/unix/touch/touch.c @@ -35,7 +35,7 @@ static int _touch_x = 0; static int _touch_y = 0; // distance from the edge where arrow button swipe starts [px] -static const int _btn_swipe_begin = 20; +static const int _btn_swipe_begin = 120; // length of the arrow button swipe [px] static const int _btn_swipe_length = 60;