change onclick to addEventListener

This commit is contained in:
Dimava 2020-06-01 02:55:54 +03:00 committed by GitHub
parent 0d342ee417
commit 54e11e6baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ export class KeybindingsState extends TextualGameState {
dialog.inputReciever.backButton.add(() => {});
this.dialogs.internalShowDialog(dialog);
dialog.element.onmousedown = clickListener;
dialog.element.addEventListener("mousedown", clickListener);
this.app.sound.playUiSound(SOUNDS.dialogOk);
}