1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-08-05 13:26:57 +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
parent fda4f7780d
commit e2ecf41b15

View File

@ -35,7 +35,7 @@ static int _touch_x = 0;
static int _touch_y = 0; static int _touch_y = 0;
// distance from the edge where arrow button swipe starts [px] // 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] // length of the arrow button swipe [px]
static const int _btn_swipe_length = 60; static const int _btn_swipe_length = 60;