Open TheGoddessInari opened 6 years ago
The documentation and issues were slightly misleading when I opened this. I believed it was possible to emulate a mobile
Not sure if nw.js is different in this regard, but if anyone knows how this can be reasonably accomplished, do let me know.
This might be stupid (I know basically zero about electron), but wouldn't limiting the size of the webview and sending a mobile user-agent be a reasonable approach to this?
Mobile does more than just change the view size and send a different user agent. It does touch-only events instead of mouse events, restricts some features, etc.
If all people want is a really ghetto mobile-alike hack, that can be done, but mobile emulation at the browser level is different. A mobile site would probably not 'act like mobile' though.
Maybe it would be good for having a compact view for things I.e. not using the entire horizontal width of a screen.
I would not expend too much effort on this functionality. Just provide people a link to download the Blisk browser. :)
Straightforward, but need to figure out the appropriate mobile view size to emulate. Perhaps based on the host window size?