mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-14 23:11:51 +08:00
Fix song restarting and multiple touches
This commit is contained in:
parent
c8acfc3188
commit
c999dca204
@ -136,10 +136,10 @@ class Controller{
|
||||
restartSong(){
|
||||
this.clean()
|
||||
if(this.multiplayer){
|
||||
new loadSong(this.selectedSong, false, true)
|
||||
new loadSong(this.selectedSong, false, true, this.touchEnabled)
|
||||
}else{
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
@ -933,7 +933,7 @@ class View{
|
||||
}
|
||||
}
|
||||
ontouch(event){
|
||||
for(let touch of event.touches){
|
||||
for(let touch of event.changedTouches){
|
||||
event.preventDefault()
|
||||
var scale = this.canvas.scale
|
||||
var pageX = touch.pageX * scale
|
||||
|
Loading…
Reference in New Issue
Block a user