diff --git a/assets/js/dialog.js b/assets/js/dialog.js index c6ea24a..d835bb8 100644 --- a/assets/js/dialog.js +++ b/assets/js/dialog.js @@ -20,14 +20,13 @@ class Dialog { dialogListener(event) { console.log(event) - if (event.key === 'Enter' || event.type === 'click' || event.type === 'touchstart') { + if (event.key === 'Enter' || event.type === 'touchstart') { event.currentTarget.self.startIntroDialogSequence() } } startIntroDialogSequence() { document.removeEventListener("keydown", this.dialogListener); - document.removeEventListener('click', this.dialogListener) document.removeEventListener('touchstart', this.dialogListener) if (this.currentDialogIndex > this.dialogOrder.length - 1) { this.dialogElem.style.display = 'none' @@ -53,7 +52,6 @@ class Dialog { var self = this document.addEventListener('keydown', this.dialogListener) - document.addEventListener('click', this.dialogListener) document.addEventListener('touchstart', this.dialogListener) document.self = self