3 ms·
Really cool game, but please please fix the viewport to prevent accidentaly zooming on the page on a mobile device!
by Ecco 9mo ago
Really cool game, but please please fix the viewport to prevent accidentaly zooming on the page on a mobile device!
- xp84 9mo agoAnd while you’re at it fix it so you can’t do a text selection of the game area. I’m having both zooming and selection happening and they make it unplayable.
- wanderingstan 9mo agoYes. And it’s so easy: `<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">`
- arscan 9mo agoIt has something like that already[1]. I'm curious what's wrong with that. 1. https://github.com/kevinAlbs/SphericalSnake/blob/b907738476da740be9c55b8dba6fe0ed7ea8c42f/index.html#L21 https://github.com/kevinAlbs/SphericalSnake/blob/b907738476d...
- argsnd 9mo agoPresumably it has to be “no” instead of “0”
- kevinAlbs 9mo agoI can reproduce a zoom on an iPad Safari when double tapping. Updated with a fix to prevent default double click events. It fixes on my environment.