We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b883ad3 commit 7c7dc11Copy full SHA for 7c7dc11
source/funkin/ui/debug/charting/ChartEditorState.hx
@@ -355,6 +355,10 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
355
value = 0;
356
}
357
358
+ // Make sure playhead doesn't scroll outside the song.
359
+ if (value + playheadPositionInPixels < 0) playheadPositionInPixels = -value;
360
+ if (value + playheadPositionInPixels > songLengthInPixels) playheadPositionInPixels = songLengthInPixels - value;
361
+
362
if (value > songLengthInPixels) value = songLengthInPixels;
363
364
if (value == scrollPositionInPixels) return value;
0 commit comments