Avoid button action trigger on long-press to exit app

master
Travis Evans 2025-05-04 22:35:30 -05:00
parent bb8403a49c
commit 2392a1b5ac
1 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ class TimerView {
this.listeners.button = setWatch( this.listeners.button = setWatch(
() => { this.dispatch_action(tt.SETTINGS.button_act); }, () => { this.dispatch_action(tt.SETTINGS.button_act); },
BTN, BTN,
{edge: 'rising', debounce: 50, repeat: true} {edge: 'falling', debounce: 50, repeat: true}
); );
// Tap handler // Tap handler
@ -633,7 +633,7 @@ class TimerFormatView {
this.listeners.button = setWatch( this.listeners.button = setWatch(
this.cancel.bind(this), this.cancel.bind(this),
BTN, BTN,
{edge: 'rising', debounce: 50, repeat: true} {edge: 'falling', debounce: 50, repeat: true}
); );
} }