Fix song scrolling in session multiplayer

This commit is contained in:
KatieFrogs 2022-02-18 00:14:38 +03:00
parent 911841af95
commit 4e6eec231a

View File

@ -1033,10 +1033,14 @@ class SongSelect{
var selectedWidth = this.songAsset.width var selectedWidth = this.songAsset.width
if(this.wheelScrolls !== 0 && !this.state.locked && ms >= this.wheelTimer + 20) { if(this.wheelScrolls !== 0 && !this.state.locked && ms >= this.wheelTimer + 20) {
this.state.move = this.wheelScrolls if(p2.session){
this.state.waitPreview = ms + 400 this.moveToSong(this.wheelScrolls)
}else{
this.state.move = this.wheelScrolls
this.state.waitPreview = ms + 400
this.endPreview()
}
this.wheelScrolls = 0 this.wheelScrolls = 0
this.endPreview()
} }
if(screen === "title" || screen === "titleFadeIn"){ if(screen === "title" || screen === "titleFadeIn"){