1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

fix(core): Disable hold-to-confirm animation when animations are disabled.

This commit is contained in:
Andrew Kozlik 2021-02-23 18:13:10 +01:00 committed by Andrew Kozlik
parent d4f6b5fc48
commit 5593862dc1

View File

@ -252,6 +252,8 @@ class HoldToConfirm(ui.Layout):
def dispatch(self, event: int, x: int, y: int) -> None:
if self.loader.start_ms is not None:
if utils.DISABLE_ANIMATION:
self.on_confirm()
self.loader.dispatch(event, x, y)
else:
self.content.dispatch(event, x, y)