From 272b668febe21dd28c9def3247ab8c31c116915e Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 18 Jun 2024 13:10:43 +0200 Subject: [PATCH] fix(core/mercury): remove instant lock-trigger swipe behavior [no changelog] --- core/embed/rust/src/ui/component/swipe_detect.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/core/embed/rust/src/ui/component/swipe_detect.rs b/core/embed/rust/src/ui/component/swipe_detect.rs index 1d09ec1ca7..96307c0d28 100644 --- a/core/embed/rust/src/ui/component/swipe_detect.rs +++ b/core/embed/rust/src/ui/component/swipe_detect.rs @@ -277,18 +277,7 @@ impl SwipeDetect { // advance in direction other than locked trigger animation towards starting // position Some(_) => 0, - None => { - let mut res = 0; - for dir in SwipeDirection::iter() { - // insta-lock if the movement went at least the trigger distance - if config.progress(dir, ofs, self.min_trigger()) > 0 { - self.locked = Some(dir); - res = Self::PROGRESS_MAX; - } - } - - res - } + None => return None, }; let Some(locked) = self.locked else {