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,11 +1033,15 @@ 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) {
if(p2.session){
this.moveToSong(this.wheelScrolls)
}else{
this.state.move = this.wheelScrolls this.state.move = this.wheelScrolls
this.state.waitPreview = ms + 400 this.state.waitPreview = ms + 400
this.wheelScrolls = 0
this.endPreview() this.endPreview()
} }
this.wheelScrolls = 0
}
if(screen === "title" || screen === "titleFadeIn"){ if(screen === "title" || screen === "titleFadeIn"){
if(ms > this.state.screenMS + 1000){ if(ms > this.state.screenMS + 1000){