diff --git a/source/funkin/editors/ui/UIButtonList.hx b/source/funkin/editors/ui/UIButtonList.hx index bc17c294..73365ceb 100644 --- a/source/funkin/editors/ui/UIButtonList.hx +++ b/source/funkin/editors/ui/UIButtonList.hx @@ -96,14 +96,14 @@ class UIButtonList extends UIWindow { public override function update(elapsed:Float) { updateButtonsPos(elapsed); - dragging = curMoving != null; + dragging = Math.abs(curMovingInterval) > addButton.bHeight / 2; super.update(elapsed); // Camera Stuff var nextscrollY = scrollY - (hovered ? FlxG.mouse.wheel : 0) * 12; - if (curMoving != null) { + if (curMoving != null && dragging) { nextscrollY -= Math.min((bHeight - 100) - FlxG.mouse.getWorldPosition(buttonCameras).y, 0) / 8; nextscrollY += Math.min(FlxG.mouse.getWorldPosition(buttonCameras).y - 100, 0) / 8; } @@ -117,6 +117,7 @@ class UIButtonList extends UIWindow { if (button != null) button.selectable = (hovered && !dragging); button.cameras = [buttonCameras]; } + addButton.selectable = (hovered && !dragging); if (__lastDrawCameras[0] != null) { buttonCameras.height = bHeight - cameraSpacing;