stop the timer on input

This commit is contained in:
Greenlamp 2024-05-19 11:08:24 +02:00
parent d08b028498
commit f87b8e259f

View File

@ -238,6 +238,7 @@ export default abstract class AbstractBindingUiHandler extends UiHandler {
* @param type - The type of button press. * @param type - The type of button press.
*/ */
onInputDown(buttonIcon: string, assignedButtonIcon: string, type: string): void { onInputDown(buttonIcon: string, assignedButtonIcon: string, type: string): void {
clearTimeout(this.countdownTimer);
this.newButtonIcon.setTexture(type); this.newButtonIcon.setTexture(type);
this.newButtonIcon.setFrame(buttonIcon); this.newButtonIcon.setFrame(buttonIcon);
if (assignedButtonIcon) { if (assignedButtonIcon) {