hide cursor
This commit is contained in:
parent
054fac4f09
commit
6f1dde46df
8
app.js
8
app.js
@ -917,14 +917,16 @@ function restart() {
|
||||
}
|
||||
|
||||
function pauseSettings() {
|
||||
stats.pauseTime = stats.time
|
||||
|
||||
scheduler.clearInterval(fall)
|
||||
scheduler.clearTimeout(lockDown)
|
||||
scheduler.clearTimeout(repeat)
|
||||
scheduler.clearInterval(autorepeat)
|
||||
stats.pauseTime = stats.time
|
||||
music.pause()
|
||||
|
||||
music.pause()
|
||||
document.onkeydown = null
|
||||
renderer.domElement.style.cursor = "auto"
|
||||
|
||||
settings.show()
|
||||
}
|
||||
@ -973,6 +975,8 @@ function resume(event) {
|
||||
music.play()
|
||||
}
|
||||
|
||||
renderer.domElement.style.cursor = "none"
|
||||
|
||||
if (piece) scheduler.setInterval(fall, stats.fallPeriod)
|
||||
else generate()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user