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

Investigate mobile support #2

Open
jamesroutley opened this issue Jun 28, 2020 · 2 comments
Open

Investigate mobile support #2

jamesroutley opened this issue Jun 28, 2020 · 2 comments

Comments

@jamesroutley
Copy link
Owner

We've had lots of requests for mobile support - let's work out how it could work.

  • Screen size might be an issue - what if the screen cuts columns of the grid off?
  • Touch input vs virtual arrow keys
@graphnode
Copy link
Contributor

Screen size might be an issue - what if the screen cuts columns of the grid off?

Viewport meta tag on the game page can be used to avoid this.

Touch input vs virtual arrow keys

Swipes for keyboard keys should work in most cases. The problem is the size of the dots for onDotClicked, 40x40px is the size recommended for usability.

@qqoen
Copy link

qqoen commented Jun 29, 2020

If viewport is set (<meta name="viewport" content="width=device-width, initial-scale=1.0"), then setting canvas width and height to 100% should display it correctly.
I think swipe events can be detected using touch events.

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

3 participants