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
if(this.wheelScrolls !== 0 && !this.state.locked && ms >= this.wheelTimer + 20) {
this.state.move = this.wheelScrolls
this.state.waitPreview = ms + 400
if(p2.session){
this.moveToSong(this.wheelScrolls)
}else{
this.state.move = this.wheelScrolls
this.state.waitPreview = ms + 400
this.endPreview()
}
this.wheelScrolls = 0
this.endPreview()
}
if(screen === "title" || screen === "titleFadeIn"){