Fix ValueBox mouse position resetting after releasing the button

This commit is contained in:
2025-01-19 21:57:16 +02:00
parent a6804cfbfd
commit ccbea2ca10

View File

@@ -328,8 +328,10 @@ namespace FlaxEditor.GUI.Input
{ {
if (button == MouseButton.Left && _isSliding) if (button == MouseButton.Left && _isSliding)
{ {
#if !PLATFORM_SDL
// End sliding and return mouse to original location // End sliding and return mouse to original location
RootWindow.MousePosition = _mouseClickedPosition; RootWindow.MousePosition = _mouseClickedPosition;
#endif
EndSliding(); EndSliding();
return true; return true;
} }