SongBg: Reduce background resolution on mobile

This commit is contained in:
LoveEevee
2018-11-24 17:09:08 +03:00
parent 9f3ee97b38
commit 6e79154cad
4 changed files with 29 additions and 5 deletions

View File

@@ -1523,7 +1523,7 @@
}
}
onmousemove(event){
this.lastMousemove = this.controller.getElapsedTime()
this.lastMousemove = this.getMS()
this.cursorHidden = false
if(!this.multiplayer && this.controller.game.paused){
@@ -1568,7 +1568,7 @@
mouseIdle(){
var lastMouse = pageEvents.getMouse()
if(lastMouse && !this.cursorHidden){
if(this.controller.getElapsedTime() >= this.lastMousemove + 2000){
if(this.getMS() >= this.lastMousemove + 2000){
this.cursor.style.top = lastMouse.clientY + "px"
this.cursor.style.left = lastMouse.clientX + "px"
this.cursor.style.pointerEvents = "auto"