Merge pull request #2466 from JugieNoob/freeplayscrollwheel-bugfix

Fixed Freeplay Scrolling Issue
This commit is contained in:
Cameron Taylor 2024-05-14 21:23:10 -04:00 committed by GitHub
commit 86de75feab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -889,11 +889,24 @@ class FreeplayState extends MusicBeatSubState
spamTimer = 0;
}
#if !html5
if (FlxG.mouse.wheel != 0)
{
dj.resetAFKTimer();
changeSelection(-Math.round(FlxG.mouse.wheel));
}
#else
if (FlxG.mouse.wheel < 0)
{
dj.resetAFKTimer();
changeSelection(-Math.round(FlxG.mouse.wheel / 4));
}
else if (FlxG.mouse.wheel > 0)
{
dj.resetAFKTimer();
changeSelection(-Math.round(FlxG.mouse.wheel / 8));
}
#end
if (controls.UI_LEFT_P && !FlxG.keys.pressed.CONTROL)
{