Added a change in cursor type to assist in UX for resizing editor panels and changing the values in value boxes
This commit is contained in:
@@ -161,6 +161,15 @@ namespace FlaxEngine.GUI
|
||||
if (_splitterClicked)
|
||||
{
|
||||
SplitterValue = _orientation == Orientation.Horizontal ? location.X / Width : location.Y / Height;
|
||||
Cursor = _orientation == Orientation.Horizontal ? CursorType.SizeWE : CursorType.SizeNS;
|
||||
}
|
||||
else if (_mouseOverSplitter)
|
||||
{
|
||||
Cursor = _orientation == Orientation.Horizontal ? CursorType.SizeWE : CursorType.SizeNS;
|
||||
}
|
||||
else
|
||||
{
|
||||
Cursor = CursorType.Default;
|
||||
}
|
||||
|
||||
base.OnMouseMove(location);
|
||||
|
||||
Reference in New Issue
Block a user