mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-12-23 01:36:14 +08:00
prevent version link from being clicked during play on mobile
This commit is contained in:
parent
3d764eb605
commit
9b2c740b9d
@ -240,4 +240,8 @@ kbd{
|
||||
color: #FFFFFF;
|
||||
text-decoration: none;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
.version-hide{
|
||||
pointer-events: none;
|
||||
}
|
||||
|
@ -59,6 +59,7 @@ class View{
|
||||
this.touchDrumDiv = document.getElementById("touch-drum")
|
||||
this.touchDrumImg = document.getElementById("touch-drum-img")
|
||||
this.gameDiv.classList.add("touch-visible")
|
||||
document.getElementById("version").classList.add("version-hide")
|
||||
|
||||
pageEvents.add(this.canvas.canvas, "touchstart", this.ontouch.bind(this))
|
||||
|
||||
@ -954,6 +955,7 @@ class View{
|
||||
pageEvents.remove(this.touchFullBtn, "click")
|
||||
pageEvents.remove(this.touchPauseBtn, "click")
|
||||
this.gameDiv.classList.remove("touch-visible")
|
||||
document.getElementById("version").classList.remove("version-hide")
|
||||
delete this.touchDrumDiv
|
||||
delete this.touchDrumImg
|
||||
delete this.touchFullBtn
|
||||
|
Loading…
Reference in New Issue
Block a user