1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-09 03:45:44 +00:00

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.
This commit is contained in:
obrusvit 2024-04-20 17:36:18 +02:00 committed by Martin Milata
parent 526a5a3460
commit 5793b0f602

View File

@ -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;