From 133d13ff3ca452701ee2e9d66fc369104f6e6c77 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Mon, 10 Oct 2022 11:06:10 -0500 Subject: [PATCH] Fixed continually setting cursour back to default in value box --- Source/Editor/GUI/Input/ValueBox.cs | 5 +++++ 1 file changed, 5 insertions(+) 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);