Changed how cursor is set back to default, so it doesnt keep setting itself

This commit is contained in:
Chandler Cox
2022-09-30 20:52:04 -05:00
parent e18002dd03
commit 3867cb5e97
2 changed files with 7 additions and 24 deletions

View File

@@ -56,6 +56,7 @@ namespace FlaxEditor.GUI.Input
private Float2 _startSlideLocation;
private double _clickStartTime = -1;
private bool _cursorChanged;
/// <summary>
/// Occurs when value gets changed.
@@ -263,8 +264,9 @@ namespace FlaxEditor.GUI.Input
if (CanUseSliding && SlideRect.Contains(location))
{
Cursor = CursorType.SizeWE;
_cursorChanged = true;
}
else if (!_isSliding)
else if (_cursorChanged && !_isSliding)
{
Cursor = CursorType.Default;
}