Commit c999dca2 authored by LoveEevee's avatar LoveEevee

Fix song restarting and multiple touches

parent c8acfc31
...@@ -136,10 +136,10 @@ class Controller{ ...@@ -136,10 +136,10 @@ class Controller{
restartSong(){ restartSong(){
this.clean() this.clean()
if(this.multiplayer){ if(this.multiplayer){
new loadSong(this.selectedSong, false, true) new loadSong(this.selectedSong, false, true, this.touchEnabled)
}else{ }else{
loader.changePage("game") loader.changePage("game")
var taikoGame = new Controller(this.selectedSong, this.songData, this.autoPlayEnabled) var taikoGame = new Controller(this.selectedSong, this.songData, this.autoPlayEnabled, false, this.touchEnabled)
taikoGame.run() taikoGame.run()
} }
} }
......
...@@ -933,7 +933,7 @@ class View{ ...@@ -933,7 +933,7 @@ class View{
} }
} }
ontouch(event){ ontouch(event){
for(let touch of event.touches){ for(let touch of event.changedTouches){
event.preventDefault() event.preventDefault()
var scale = this.canvas.scale var scale = this.canvas.scale
var pageX = touch.pageX * scale var pageX = touch.pageX * scale
......
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