Fix ValueBox mouse position resetting after releasing the button

This commit is contained in:
2025-01-19 21:57:16 +02:00
parent 97563b7ac8
commit 0c95ab2d72

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