Posted July 15, 2018 by sg
I've had a chance to pick out some awesome background music for the game (somber beauty by fwimmygoat), to set the mood for your space explorations. I've also fixed problems on mobile (especially iOS), most notably moving the viewport around as you maneuvered your ship.
For other people making mobile web apps, here are the many ways I disabled scrolling, panning, zooming, highlighting, and selecting:
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
body, canvas { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
document.addEventListener('touchstart', e => e.preventDefault(), { passive: false }) document.addEventListener('touchmove', e => e.preventDefault(), { passive: false })
Hope that saves you some visits to outdated Stack Overflow pages!