From 892fbe8d8f0164f15329cfbef789f4ae6881b604 Mon Sep 17 00:00:00 2001 From: Roman Artiukhin Date: Sun, 31 May 2026 13:16:47 +0300 Subject: [PATCH] action: touchscreen: fix stuck repeated state of last action This fixes the repeat_mode being stuck on Repeat Shuffle on the Hiby R1 WPS, and quick settings values being stuck at the last values for touch actions. Regression from 9e254aca. The repeated state is used by the quick screen to detect repeated actions (see b918ec5) so I also removed "historical baggage" note. Change-Id: Ic2a97058bbd17d232954ffe37f31a480ee11fe54 --- apps/action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/action.c b/apps/action.c index c7dd74f60a..28c93603d9 100644 --- a/apps/action.c +++ b/apps/action.c @@ -430,6 +430,7 @@ static inline bool get_action_touchscreen(action_last_t *last, action_cur_t *cur { intptr_t data = button_get_data(); long now = current_tick; + last->repeated = false; if (has_flag(last->button, BUTTON_TOUCHSCREEN) && !has_flag(last->button, BUTTON_REL)) @@ -439,7 +440,6 @@ static inline bool get_action_touchscreen(action_last_t *last, action_cur_t *cur if (!has_flag(cur->button, BUTTON_REL)) last->ts_data = data; - /* Historical baggage... may be unnecessary. */ if (has_flag(cur->button, BUTTON_REPEAT)) last->repeated = true; }