mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
Fix touching settings
This commit is contained in:
parent
879186c313
commit
59fc718a08
@ -134,7 +134,7 @@ class SettingsView{
|
|||||||
settingBox.classList.add("selected")
|
settingBox.classList.add("selected")
|
||||||
}
|
}
|
||||||
pageEvents.add(settingBox, ["mousedown", "touchstart"], event => {
|
pageEvents.add(settingBox, ["mousedown", "touchstart"], event => {
|
||||||
if(event.which === 1){
|
if(event.type !== "mousedown" || event.which === 1){
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
this.setValue(i)
|
this.setValue(i)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user