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
5c03b2f3
Commit
5c03b2f3
authored
Mar 24, 2023
by
comfyanonymous
Browse files
Merge branch 'mobile-support' of
https://github.com/Zentropivity/ComfyUI
parents
4adcea72
4461ddc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
web/index.html
web/index.html
+2
-1
web/lib/litegraph.core.js
web/lib/litegraph.core.js
+3
-3
No files found.
web/index.html
View file @
5c03b2f3
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=no"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"lib/litegraph.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"style.css"
/>
<script
type=
"text/javascript"
src=
"lib/litegraph.core.js"
></script>
<script
type=
"module"
>
import
{
app
}
from
"
/scripts/app.js
"
;
await
app
.
setup
();
...
...
web/lib/litegraph.core.js
View file @
5c03b2f3
...
...
@@ -108,7 +108,7 @@
node_box_coloured_when_on
:
false
,
// [true!] this make the nodes box (top left circle) coloured when triggered (execute/action), visual feedback
node_box_coloured_by_mode
:
false
,
// [true!] nodebox based on node mode, visual feedback
dialog_close_on_mouse_leave
:
tru
e
,
// [false on mobile] better true if not touch device, TODO add an helper/listener to close if false
dialog_close_on_mouse_leave
:
fals
e
,
// [false on mobile] better true if not touch device, TODO add an helper/listener to close if false
dialog_close_on_mouse_leave_delay
:
500
,
shift_click_do_break_link_from
:
false
,
// [false!] prefer false if results too easy to break links - implement with ALT or TODO custom keys
...
...
@@ -138,7 +138,7 @@
release_link_on_empty_shows_menu
:
false
,
//[true!] dragging a link to empty space will open a menu, add from list, search or defaults
pointerevents_method
:
"
mouse
"
,
// "mouse"|"pointer" use mouse for retrocompatibility issues? (none found @ now)
pointerevents_method
:
"
pointer
"
,
// "mouse"|"pointer" use mouse for retrocompatibility issues? (none found @ now)
// TODO implement pointercancel, gotpointercapture, lostpointercapture, (pointerover, pointerout if necessary)
/**
...
...
@@ -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
;
...
...
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