From 21b2e59fbbde3655e4e5fb488b2f4d8f8e0d6895 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 13 Mar 2026 23:26:03 +0100 Subject: [PATCH] Fix `ValueBox` regression on mouse cursor hover --- Source/Editor/GUI/Input/ValueBox.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/Editor/GUI/Input/ValueBox.cs b/Source/Editor/GUI/Input/ValueBox.cs index 68f5e8f03..6cea67aa4 100644 --- a/Source/Editor/GUI/Input/ValueBox.cs +++ b/Source/Editor/GUI/Input/ValueBox.cs @@ -303,10 +303,10 @@ namespace FlaxEditor.GUI.Input return base.OnMouseDown(location, button); } -#if !PLATFORM_SDL /// public override void OnMouseMove(Float2 location) { +#if !PLATFORM_SDL if (_isSliding && !RootWindow.Window.IsMouseFlippingHorizontally) { // Update sliding @@ -314,6 +314,7 @@ namespace FlaxEditor.GUI.Input ApplySliding(Mathf.RoundToInt(slideLocation.X - _startSlideLocation.X) * _slideSpeed); return; } +#endif // Update cursor type so user knows they can slide value if (CanUseSliding && SlideRect.Contains(location) && !_isSliding) @@ -330,8 +331,7 @@ namespace FlaxEditor.GUI.Input base.OnMouseMove(location); } -#else - +#if PLATFORM_SDL /// public override void OnMouseMoveRelative(Float2 motion) { @@ -357,7 +357,6 @@ namespace FlaxEditor.GUI.Input base.OnMouseMoveRelative(motion); } - #endif ///