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

Fix mobile viewport by adding Full screen flag. #1155

Open
develroo opened this issue Feb 4, 2023 · 0 comments
Open

Fix mobile viewport by adding Full screen flag. #1155

develroo opened this issue Feb 4, 2023 · 0 comments

Comments

@develroo
Copy link

develroo commented Feb 4, 2023

On mobile devices (Tablets/Phones) the default browsers leave a header bar or footer bar to keep navigation accessible. However, that puts the viewport in an offset mode. This leads to the view port to move when you move a token, as the token will only move when the edge of the view port is reached.

Examples.

Portrait:

recording_20230115_102808.mp4

Landscape

recording_20230115_104705.mp4

This ought to be solved by just specifying the 'Full Screen' flag when rendering for these platforms. It is explained for JavaScript here. Which should apply to all browsers, mobile or not.

https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API

You can add a full screen toggle button in the GUI like this.

pa-fullscreen-mockup

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

No branches or pull requests

1 participant