Fix missing focus for SliderControl

This commit is contained in:
Wojtek Figat
2021-01-12 23:07:20 +01:00
parent a3fa8ff9f0
commit 932de300e4

View File

@@ -168,6 +168,7 @@ namespace FlaxEditor.GUI.Input
{
if (button == MouseButton.Left)
{
Focus();
float mousePosition = location.X;
if (_thumbRect.Contains(ref location))
@@ -208,7 +209,6 @@ namespace FlaxEditor.GUI.Input
{
if (button == MouseButton.Left && _isSliding)
{
// End sliding
EndSliding();
return true;
}