Change variable name to dropping.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user