From 4e1251276d3d5c3da580d9a3c4cd3e5f480802cf Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sun, 19 Jan 2025 21:57:16 +0200 Subject: [PATCH] Fix ValueBox mouse position resetting after releasing the button --- Source/Editor/GUI/Input/ValueBox.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Editor/GUI/Input/ValueBox.cs b/Source/Editor/GUI/Input/ValueBox.cs index 13e8ef5ce..2252a7f22 100644 --- a/Source/Editor/GUI/Input/ValueBox.cs +++ b/Source/Editor/GUI/Input/ValueBox.cs @@ -328,8 +328,10 @@ namespace FlaxEditor.GUI.Input { if (button == MouseButton.Left && _isSliding) { +#if !PLATFORM_SDL // End sliding and return mouse to original location RootWindow.MousePosition = _mouseClickedPosition; +#endif EndSliding(); return true; }