From 2392a1b5acfd121df376e7c39b985d38910d571c Mon Sep 17 00:00:00 2001 From: Travis Evans Date: Sun, 4 May 2025 22:35:30 -0500 Subject: [PATCH] Avoid button action trigger on long-press to exit app --- apps/tevtimer/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/tevtimer/app.js b/apps/tevtimer/app.js index ef4b38029..959165fbd 100644 --- a/apps/tevtimer/app.js +++ b/apps/tevtimer/app.js @@ -225,7 +225,7 @@ class TimerView { this.listeners.button = setWatch( () => { this.dispatch_action(tt.SETTINGS.button_act); }, BTN, - {edge: 'rising', debounce: 50, repeat: true} + {edge: 'falling', debounce: 50, repeat: true} ); // Tap handler @@ -633,7 +633,7 @@ class TimerFormatView { this.listeners.button = setWatch( this.cancel.bind(this), BTN, - {edge: 'rising', debounce: 50, repeat: true} + {edge: 'falling', debounce: 50, repeat: true} ); }