Change variable name to dropping.

This commit is contained in:
Chandler Cox
2024-06-19 09:24:33 -05:00
parent 919e118a2f
commit a1adab1156
2 changed files with 5 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ namespace FlaxEditor.Windows.Assets
private bool _liveReload = false;
private bool _isUpdatingSelection, _isScriptsReloading;
private DateTime _modifiedTime = DateTime.MinValue;
private bool _isDragging = false;
private bool _isDropping = false;
/// <summary>
/// Gets the prefab hierarchy tree control.
@@ -274,14 +274,14 @@ namespace FlaxEditor.Windows.Assets
return true;
}
if (button == MouseButton.Left && _treePanel.ContainsPoint(ref location) && !_isDragging)
if (button == MouseButton.Left && _treePanel.ContainsPoint(ref location) && !_isDropping)
{
_tree.Deselect();
return true;
}
if (_isDragging)
if (_isDropping)
{
_isDragging = false;
_isDropping = false;
return true;
}
return false;