Removing moving the control when trying to resize it.

This commit is contained in:
Chandler Cox
2025-10-24 16:19:33 -05:00
parent d1774cac28
commit 09964df198

View File

@@ -398,7 +398,6 @@ namespace FlaxEditor
var moveLocation = _mouseMovesPos + delta;
var control = _activeWidget.UIControl.Control;
var uiControlDelta = GetControlDelta(control, ref _mouseMovesPos, ref moveLocation);
control.LocalLocation += uiControlDelta * resizeAxisNeg;
control.Size += uiControlDelta * resizeAxisPos - uiControlDelta * resizeAxisNeg;
// Don't move if layout doesn't allow it