-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved mobile support #2616
Improved mobile support #2616
Conversation
Responsive setting screen Touch events for zooming/context menu
i am testing on a galaxy fold 4 in chrome brave and firefox. i would like to add the mac 2 finger addon dosnt aid in interactivity with touch on android phones. and in dex mode the ctrl scroll wheel combo dosnt zoom. |
Tested on M1 ipad pro
|
@pythongosssss I noticed poking in the network tab, you have another plugin called
seems like something provided by your node suite? Has this been superceded? |
I would like to note two things at this time
|
a little more information on the problem i found:
Separately I'd like to mention that on macOS somehow ComfyUI seems completely broken in Firefox as you cannot left click or drag. I use it all the time from Firefox on linux though. |
Confirmed this PR did not introduce the rendering issue for the double click menu! will post further findings in the new issue I made #2760. |
If you are trying to get true mobile support, you might have to drill in the Litegraph.core.js and change some event handlers. Like first detect if its a mobile user agent and/or if navigator.maxTouchPoints > 0. Then change some event handlers around, example, LiteGraph.pointerListenerAdd(dialog,"leave", function(e) {
if (prevent_timeout){
return;
}
timeout_close = setTimeout(function() {
dialog.close();
}, typeof options.hide_on_mouse_leave === "number" ? options.hide_on_mouse_leave : 500);
}); This causes the search box to close if the mouse leaves, so in mobile, if you tried scrolling through the entries, as soon as your touch ends, it closes the box. Instead, maybe there should be a click event for when it occured outside of the box, |
You're probably right! For now the search menu still successfully works for picking an item, I have to do more testing to confirm how broken swiping to scroll and choosing from farther down is. |
I noticed this boolean at the top of litegraph.core.js, it completely disables the mouse leave auto hide, but still the scrolling and finger leaving causes it to vanish. search_hide_on_mouse_leave: true, // [false on mobile] better true if not touch device, TODO add an helper/listener to close if false When looking at litegraph.js repo, it appears these are meant to be settings. They are also modifiable directly in the conosole Which means litegraph.core.js might not need to be modified directly, app.js might be able to make the modifications. I tested trying to use a |
Can confirm, search menu is a bit clunky to use because of this. |
By no means perfect, but better than it currently is.
I've tested on Firefox + Chrome on Android, and Safari on an old iPad. If someone could please test on a newer iOS device that would be great.
Close button menu, hides the menu and shows a hamburger menu icon:


Settings collapses into a single column with a close button at the top
