Update inject.js

This commit is contained in:
rlauuzo 2024-08-06 18:36:33 +02:00 committed by GitHub
parent e8fcdf53de
commit 182fe9f831
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,7 +290,7 @@ const introSkipper = {
inputContainers.forEach(container => {
const displayInput = container.querySelector('[id$="Display"]');
const editInput = container.querySelector('[id$="Edit"]');
displayInput.addEventListener('click', () => this.switchToEdit(displayInput, editInput));
displayInput.addEventListener('pointerdown', () => this.switchToEdit(displayInput, editInput));
editInput.addEventListener('blur', () => this.switchToDisplay(displayInput, editInput));
displayInput.value = this.formatTime(parseFloat(editInput.value) || 0);
});