diff --git a/source/funkin/editors/charter/CharterEventTypeSelection.hx b/source/funkin/editors/charter/CharterEventTypeSelection.hx index bb32f41e..994788a3 100644 --- a/source/funkin/editors/charter/CharterEventTypeSelection.hx +++ b/source/funkin/editors/charter/CharterEventTypeSelection.hx @@ -70,8 +70,9 @@ class CharterEventTypeSelection extends UISubstateWindow { buttonCameras.x = -subCam.scroll.x + Std.int(windowSpr.x+10); buttonCameras.y = -subCam.scroll.y + Std.int(windowSpr.y+41); - buttonCameras.scroll.y = FlxMath.bound(buttonCameras.scroll.y - (buttonsBG.hovered ? FlxG.mouse.wheel : 0) * 12, 0, - (buttons[buttons.length-1].y + buttons[buttons.length-1].bHeight) - buttonCameras.height); + if (buttons.length > 16) + buttonCameras.scroll.y = FlxMath.bound(buttonCameras.scroll.y - (buttonsBG.hovered ? FlxG.mouse.wheel : 0) * 12, 0, + (buttons[buttons.length-1].y + buttons[buttons.length-1].bHeight) - buttonCameras.height); } override function destroy() {