Remove measures before first one, fix debug mouse events

This commit is contained in:
LoveEevee
2018-10-27 23:42:02 +03:00
parent 4a3675a97c
commit 73e7d384cd
2 changed files with 3 additions and 17 deletions

View File

@@ -243,8 +243,8 @@ class SongSelect{
this.startP2()
pageEvents.keyAdd(this, "all", "down", this.keyDown.bind(this))
pageEvents.add(window, "mousemove", this.mouseMove.bind(this))
pageEvents.add(window, ["mousedown", "touchstart"], this.mouseDown.bind(this))
pageEvents.add(loader.screen, "mousemove", this.mouseMove.bind(this))
pageEvents.add(loader.screen, ["mousedown", "touchstart"], this.mouseDown.bind(this))
if(touchEnabled && fullScreenSupported){
this.touchFullBtn = document.getElementById("touch-full-btn")
this.touchFullBtn.style.display = "block"
@@ -1459,7 +1459,7 @@ class SongSelect{
this.redrawRunning = false
this.endPreview()
pageEvents.keyRemove(this, "all")
pageEvents.remove(window, ["mousemove", "mousedown", "touchstart"])
pageEvents.remove(loader.screen, ["mousemove", "mousedown", "touchstart"])
if(this.touchEnabled && fullScreenSupported){
pageEvents.remove(this.touchFullBtn, "click")
delete this.touchFullBtn