From 4e6eec231afde39bbc012faa0e0ee52a9c461220 Mon Sep 17 00:00:00 2001 From: KatieFrogs <23621460+KatieFrogs@users.noreply.github.com> Date: Fri, 18 Feb 2022 00:14:38 +0300 Subject: [PATCH] Fix song scrolling in session multiplayer --- public/src/js/songselect.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index 13270b1..3545f45 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -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"){