1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 11:22:55 +00:00

Fixed Scrolling on HTML5 Platforms

This commit is contained in:
JugieNoob 2024-05-12 02:21:59 +02:00
parent 4f8a0dbebf
commit b22f09d4da

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)
{