Fixed continually setting cursour back to default in value box

This commit is contained in:
Chandler Cox
2022-10-10 11:06:10 -05:00
parent 6d6961d961
commit 133d13ff3c

View File

@@ -174,6 +174,7 @@ namespace FlaxEditor.GUI.Input
_isSliding = false;
EndMouseCapture();
Cursor = CursorType.Default;
_cursorChanged = false;
SlidingEnd?.Invoke();
}
@@ -224,6 +225,8 @@ namespace FlaxEditor.GUI.Input
// Update
UpdateText();
}
Cursor = CursorType.Default;
ResetViewOffset();
}
@@ -239,6 +242,7 @@ namespace FlaxEditor.GUI.Input
_startSlideValue = _value;
StartMouseCapture(true);
Cursor = CursorType.SizeWE;
_cursorChanged = true;
SlidingStart?.Invoke();
return true;
}
@@ -269,6 +273,7 @@ namespace FlaxEditor.GUI.Input
else if (_cursorChanged && !_isSliding)
{
Cursor = CursorType.Default;
_cursorChanged = false;
}
base.OnMouseMove(location);