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
7ada9e7d
Commit
7ada9e7d
authored
May 16, 2023
by
ltdrdata
Browse files
allows touch drag
parent
13d94caf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
web/scripts/app.js
web/scripts/app.js
+3
-1
No files found.
web/scripts/app.js
View file @
7ada9e7d
...
@@ -902,7 +902,9 @@ export class ComfyApp {
...
@@ -902,7 +902,9 @@ export class ComfyApp {
await
this
.
#
loadExtensions
();
await
this
.
#
loadExtensions
();
// Create and mount the LiteGraph in the DOM
// Create and mount the LiteGraph in the DOM
const
canvasEl
=
(
this
.
canvasEl
=
Object
.
assign
(
document
.
createElement
(
"
canvas
"
),
{
id
:
"
graph-canvas
"
}));
const
mainCanvas
=
document
.
createElement
(
"
canvas
"
)
mainCanvas
.
style
.
touchAction
=
"
none
"
const
canvasEl
=
(
this
.
canvasEl
=
Object
.
assign
(
mainCanvas
,
{
id
:
"
graph-canvas
"
}));
canvasEl
.
tabIndex
=
"
1
"
;
canvasEl
.
tabIndex
=
"
1
"
;
document
.
body
.
prepend
(
canvasEl
);
document
.
body
.
prepend
(
canvasEl
);
...
...
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