From 59fc718a08fa583ed294f2ddb4ce437eea93bac3 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Fri, 5 Apr 2019 23:21:22 +0300 Subject: [PATCH] Fix touching settings --- public/src/js/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/js/settings.js b/public/src/js/settings.js index 97b8a41..0e38926 100644 --- a/public/src/js/settings.js +++ b/public/src/js/settings.js @@ -134,7 +134,7 @@ class SettingsView{ settingBox.classList.add("selected") } pageEvents.add(settingBox, ["mousedown", "touchstart"], event => { - if(event.which === 1){ + if(event.type !== "mousedown" || event.which === 1){ event.preventDefault() this.setValue(i) }