Skip to content
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

Simulate browser's URL bar offset in device emulation mode #2

Open
sinedied opened this issue Feb 22, 2022 · 1 comment
Open

Simulate browser's URL bar offset in device emulation mode #2

sinedied opened this issue Feb 22, 2022 · 1 comment
Labels
feature New feature or request

Comments

@sinedied
Copy link

Toggling the device emulation mode is great for proof-testing and debugging your mobile website designs, but it's currently missing an essential piece that still makes testing on a real device a critical part of the dev workflow: there's no browser UI included in the screen simulation, especially the toolbar part containing the current URL that appears at the top (or bottom) of the window.

As this toolbar usually alter the window dimensions in the final device, it makes it easy to overlook issues that may only appear on real devices.

This is particularly the case with dual screen emulation for the Surface Duo, as on the real device both screen windows may not have the same size depending of the orientation because of the browser UI, whereas on the simulator both windows will always have the same size:

image

For example, when loading the same website on a real Surface Duo, the top window will have its vertical size reduced because of the URL toolbar.

@sinedied sinedied added the feature New feature or request label Feb 22, 2022
@captainbrosset
Copy link
Contributor

Great point. Indeed the device emulation mode is really just a way to resize the window (and simulate touch events), and is very far from what a real device would do.
I know @zoherghadyali was thinking about this recently and might have some good notes to share.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants