1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-19 01:26:06 +00:00

fix(core/mercury): remove instant lock-trigger swipe behavior

[no changelog]
This commit is contained in:
tychovrahe 2024-06-18 13:10:43 +02:00 committed by matejcik
parent a0e33d61bd
commit 272b668feb

View File

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