mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-09-30 22:38:58 +00:00
Merge pull request #2466 from JugieNoob/freeplayscrollwheel-bugfix
Fixed Freeplay Scrolling Issue
This commit is contained in:
commit
86de75feab
|
@ -889,11 +889,24 @@ class FreeplayState extends MusicBeatSubState
|
||||||
spamTimer = 0;
|
spamTimer = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !html5
|
||||||
if (FlxG.mouse.wheel != 0)
|
if (FlxG.mouse.wheel != 0)
|
||||||
|
{
|
||||||
|
dj.resetAFKTimer();
|
||||||
|
changeSelection(-Math.round(FlxG.mouse.wheel));
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
if (FlxG.mouse.wheel < 0)
|
||||||
{
|
{
|
||||||
dj.resetAFKTimer();
|
dj.resetAFKTimer();
|
||||||
changeSelection(-Math.round(FlxG.mouse.wheel / 4));
|
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)
|
if (controls.UI_LEFT_P && !FlxG.keys.pressed.CONTROL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue