diff --git a/Source/Editor/GUI/Input/ValueBox.cs b/Source/Editor/GUI/Input/ValueBox.cs index 4836b41c5..2b13742ee 100644 --- a/Source/Editor/GUI/Input/ValueBox.cs +++ b/Source/Editor/GUI/Input/ValueBox.cs @@ -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);