Fixed continually setting cursour back to default in value box
This commit is contained in:
@@ -174,6 +174,7 @@ namespace FlaxEditor.GUI.Input
|
|||||||
_isSliding = false;
|
_isSliding = false;
|
||||||
EndMouseCapture();
|
EndMouseCapture();
|
||||||
Cursor = CursorType.Default;
|
Cursor = CursorType.Default;
|
||||||
|
_cursorChanged = false;
|
||||||
SlidingEnd?.Invoke();
|
SlidingEnd?.Invoke();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -225,6 +226,8 @@ namespace FlaxEditor.GUI.Input
|
|||||||
UpdateText();
|
UpdateText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Cursor = CursorType.Default;
|
||||||
|
|
||||||
ResetViewOffset();
|
ResetViewOffset();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -239,6 +242,7 @@ namespace FlaxEditor.GUI.Input
|
|||||||
_startSlideValue = _value;
|
_startSlideValue = _value;
|
||||||
StartMouseCapture(true);
|
StartMouseCapture(true);
|
||||||
Cursor = CursorType.SizeWE;
|
Cursor = CursorType.SizeWE;
|
||||||
|
_cursorChanged = true;
|
||||||
SlidingStart?.Invoke();
|
SlidingStart?.Invoke();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -269,6 +273,7 @@ namespace FlaxEditor.GUI.Input
|
|||||||
else if (_cursorChanged && !_isSliding)
|
else if (_cursorChanged && !_isSliding)
|
||||||
{
|
{
|
||||||
Cursor = CursorType.Default;
|
Cursor = CursorType.Default;
|
||||||
|
_cursorChanged = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
base.OnMouseMove(location);
|
base.OnMouseMove(location);
|
||||||
|
|||||||
Reference in New Issue
Block a user