mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-18 14:08:47 +00:00
fix(core/mercury): remove instant lock-trigger swipe behavior
[no changelog]
This commit is contained in:
parent
a0e33d61bd
commit
272b668feb
@ -277,18 +277,7 @@ impl SwipeDetect {
|
|||||||
// advance in direction other than locked trigger animation towards starting
|
// advance in direction other than locked trigger animation towards starting
|
||||||
// position
|
// position
|
||||||
Some(_) => 0,
|
Some(_) => 0,
|
||||||
None => {
|
None => return 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
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let Some(locked) = self.locked else {
|
let Some(locked) = self.locked else {
|
||||||
|
Loading…
Reference in New Issue
Block a user