xeolabs / xeogl

A WebGL-based 3D engine for technical visualization. Not actively maintained.
http://xeogl.org
Other
1.15k stars 264 forks source link

Is pinch-to-zoom enabled? #243

Closed tldddd closed 6 years ago

tldddd commented 6 years ago
Description of the problem

Orbiting and panning work great on touch screens, but zooming only ever zooms in and out of the actual webpage, making the image very pixalated. I'm not sure if pinch-to-zoom is actually enabled or not or if I need to do something with the HTML to prevent the whole page zooming? ...

xeogl version
Browser
OS
Hardware Requirements

Samsung Galaxy Tab S2

tldddd commented 6 years ago

Turns out that you need to enable the appropriate viewport settings in the HTML, that's where it was going wrong.

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">

Perhaps this could be mentioned in the docs.