mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-21 10:48:21 -05:00
fix: re-enable precise chart editor scrolling, and also fix smooth scroll playhead/playbar playback (#3806)
This commit is contained in:
parent
6321983eba
commit
0d8e4a5330
1 changed files with 4 additions and 2 deletions
|
@ -2729,6 +2729,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
|||
{
|
||||
// Update the conductor and audio tracks to match.
|
||||
currentScrollEase = d.value;
|
||||
easeSongToScrollPosition(currentScrollEase);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2741,7 +2742,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
|||
playbarHeadDraggingWasPlaying = false;
|
||||
|
||||
// Disabled code to resume song playback on drag.
|
||||
// startAudioPlayback();
|
||||
startAudioPlayback();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3873,7 +3874,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
|||
}
|
||||
|
||||
// Mouse Wheel = Scroll
|
||||
if (FlxG.mouse.wheel != 0 && !FlxG.keys.pressed.CONTROL)
|
||||
if (FlxG.mouse.wheel != 0)
|
||||
{
|
||||
scrollAmount = -50 * FlxG.mouse.wheel;
|
||||
shouldPause = true;
|
||||
|
@ -4469,6 +4470,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
|
|||
0, songLengthInPixels);
|
||||
|
||||
currentScrollEase = clickedPosInPixels;
|
||||
easeSongToScrollPosition(currentScrollEase);
|
||||
}
|
||||
else if (scrollAnchorScreenPos != null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue