Fix touching settings

This commit is contained in:
LoveEevee 2019-04-05 23:21:22 +03:00
parent 879186c313
commit 59fc718a08

View File

@ -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)
}