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
5ac96897
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "ab0e92fdc8b42e1739840d10bb0b1dc7edaf2ff3"
Commit
5ac96897
authored
Aug 09, 2023
by
comfyanonymous
Browse files
Images can now be uploaded by dragging from another window in chromium.
parent
a5599ed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web/scripts/widgets.js
web/scripts/widgets.js
+1
-1
No files found.
web/scripts/widgets.js
View file @
5ac96897
...
@@ -433,7 +433,7 @@ export const ComfyWidgets = {
...
@@ -433,7 +433,7 @@ export const ComfyWidgets = {
// Add handler to check if an image is being dragged over our node
// Add handler to check if an image is being dragged over our node
node
.
onDragOver
=
function
(
e
)
{
node
.
onDragOver
=
function
(
e
)
{
if
(
e
.
dataTransfer
&&
e
.
dataTransfer
.
items
)
{
if
(
e
.
dataTransfer
&&
e
.
dataTransfer
.
items
)
{
const
image
=
[...
e
.
dataTransfer
.
items
].
find
((
f
)
=>
f
.
kind
===
"
file
"
&&
f
.
type
.
startsWith
(
"
image/
"
)
);
const
image
=
[...
e
.
dataTransfer
.
items
].
find
((
f
)
=>
f
.
kind
===
"
file
"
);
return
!!
image
;
return
!!
image
;
}
}
...
...
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