mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Fix double click handling by not using faulty is_primary check
This commit is contained in:
parent
963b68b81c
commit
e9206a52da
@ -5801,7 +5801,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
var skip_action = false;
|
||||
var now = LiteGraph.getTime();
|
||||
var is_primary = (e.isPrimary === undefined || !e.isPrimary);
|
||||
var is_double_click = (now - this.last_mouseclick < 300) && is_primary;
|
||||
var is_double_click = (now - this.last_mouseclick < 300);
|
||||
this.mouse[0] = e.clientX;
|
||||
this.mouse[1] = e.clientY;
|
||||
this.graph_mouse[0] = e.canvasX;
|
||||
|
Loading…
Reference in New Issue
Block a user