Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
e9206a52
".github/git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "5818ca83a243430e6141ce0e7c1096b4ac83d392"
Commit
e9206a52
authored
Mar 23, 2023
by
Zentropivity
Browse files
Fix double click handling by not using faulty is_primary check
parent
963b68b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web/lib/litegraph.core.js
web/lib/litegraph.core.js
+1
-1
No files found.
web/lib/litegraph.core.js
View file @
e9206a52
...
@@ -5801,7 +5801,7 @@ LGraphNode.prototype.executeAction = function(action)
...
@@ -5801,7 +5801,7 @@ LGraphNode.prototype.executeAction = function(action)
var
skip_action
=
false
;
var
skip_action
=
false
;
var
now
=
LiteGraph
.
getTime
();
var
now
=
LiteGraph
.
getTime
();
var
is_primary
=
(
e
.
isPrimary
===
undefined
||
!
e
.
isPrimary
);
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
[
0
]
=
e
.
clientX
;
this
.
mouse
[
1
]
=
e
.
clientY
;
this
.
mouse
[
1
]
=
e
.
clientY
;
this
.
graph_mouse
[
0
]
=
e
.
canvasX
;
this
.
graph_mouse
[
0
]
=
e
.
canvasX
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment