Trigger UI double-click actions with left mouse button only
This commit is contained in:
@@ -71,9 +71,14 @@ namespace FlaxEditor.Windows
|
||||
/// <inheritdoc />
|
||||
protected override bool OnMouseDoubleClickHeader(ref Float2 location, MouseButton button)
|
||||
{
|
||||
var node = GetNode(Tag);
|
||||
((VisualScriptWindow)node?.Surface.Owner)?.ShowNode(node);
|
||||
return true;
|
||||
if (button == MouseButton.Left)
|
||||
{
|
||||
var node = GetNode(Tag);
|
||||
((VisualScriptWindow)node?.Surface.Owner)?.ShowNode(node);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user