Commit 73e7d384 authored by LoveEevee's avatar LoveEevee

Remove measures before first one, fix debug mouse events

parent 4a3675a9
...@@ -125,7 +125,6 @@ ...@@ -125,7 +125,6 @@
var branchPreference = "m" var branchPreference = "m"
var currentMeasure = [] var currentMeasure = []
var firstMeasure = true
var firstNote = true var firstNote = true
var circles = [] var circles = []
var circleID = 0 var circleID = 0
...@@ -143,19 +142,6 @@ ...@@ -143,19 +142,6 @@
originalMS: ms, originalMS: ms,
speed: speed speed: speed
}) })
if(firstMeasure){
firstMeasure = false
var msPerMeasure = 60000 * measure / bpm
for(var measureMs = ms - msPerMeasure; measureMs > 0; measureMs -= msPerMeasure){
this.measures.push({
ms: measureMs,
originalMS: ms,
speed: speed
})
}
}
}else{
firstMeasure = false
} }
if(currentMeasure.length){ if(currentMeasure.length){
for(var i = 0; i < currentMeasure.length; i++){ for(var i = 0; i < currentMeasure.length; i++){
......
...@@ -243,8 +243,8 @@ class SongSelect{ ...@@ -243,8 +243,8 @@ class SongSelect{
this.startP2() this.startP2()
pageEvents.keyAdd(this, "all", "down", this.keyDown.bind(this)) pageEvents.keyAdd(this, "all", "down", this.keyDown.bind(this))
pageEvents.add(window, "mousemove", this.mouseMove.bind(this)) pageEvents.add(loader.screen, "mousemove", this.mouseMove.bind(this))
pageEvents.add(window, ["mousedown", "touchstart"], this.mouseDown.bind(this)) pageEvents.add(loader.screen, ["mousedown", "touchstart"], this.mouseDown.bind(this))
if(touchEnabled && fullScreenSupported){ if(touchEnabled && fullScreenSupported){
this.touchFullBtn = document.getElementById("touch-full-btn") this.touchFullBtn = document.getElementById("touch-full-btn")
this.touchFullBtn.style.display = "block" this.touchFullBtn.style.display = "block"
...@@ -1459,7 +1459,7 @@ class SongSelect{ ...@@ -1459,7 +1459,7 @@ class SongSelect{
this.redrawRunning = false this.redrawRunning = false
this.endPreview() this.endPreview()
pageEvents.keyRemove(this, "all") pageEvents.keyRemove(this, "all")
pageEvents.remove(window, ["mousemove", "mousedown", "touchstart"]) pageEvents.remove(loader.screen, ["mousemove", "mousedown", "touchstart"])
if(this.touchEnabled && fullScreenSupported){ if(this.touchEnabled && fullScreenSupported){
pageEvents.remove(this.touchFullBtn, "click") pageEvents.remove(this.touchFullBtn, "click")
delete this.touchFullBtn delete this.touchFullBtn
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment