Trigger UI double-click actions with left mouse button only

This commit is contained in:
Ari Vuollet
2026-08-18 00:10:42 +03:00
parent c83cec1e4e
commit 923fc58cd1
22 changed files with 110 additions and 65 deletions
@@ -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;
}
}