#IOS control problems in my threejs game

7 messages · Page 1 of 1 (latest)

neon basalt
#

Can you help me and test my game on IOS? https://yandex.ru/games/app/434049?debug-mode=16&draft=true&lang=ru

  1. The controls work fine and you can complete the first level.
  2. There is no possibility of scrolling and distortion of the game window.

Video bugs: https://disk.yandex.ru/i/2O8ZhZEo_c768g - Zooming and scrolling. How to fix it?

Is <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> sufficient?
And `<style>body { touch-action: none; } <style>.

wide mason
#

Meta viewport won’t work unless they are at the root level of the page

#

And it looks like your game is embedded on a gaming website - so it’s up to that website to control the zoom and scrolling

#

One way you can try to take over these controls is to request fullscreen mode - then your game will take the entire screen

#

(But full screen API is not available on iOS sad_cat )

hoary bridge
#

it works on ipads now