Fix ValueBox mouse position resetting after releasing the button

This commit is contained in:
2025-01-19 21:57:16 +02:00
parent 9fc7fc7a2e
commit 3feebe8910

View File

@@ -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;
}