google / model-viewer

Easily display interactive 3D models on the web and in AR!
https://modelviewer.dev
Apache License 2.0
6.93k stars 818 forks source link

Model rotates incorrectly #4418

Closed DKGH closed 1 year ago

DKGH commented 1 year ago

I am using the below code:

<model-viewer src={urlToBlob} disable-tap camera-controls touch-action />

However, it starts to tumble when I try to rotate the view left or right. Rotating the view top to bottom works fine. How do I ensure that left to right rotation also works correctly? Also, the up and down rotation gets stuck after a point. It seems constrained. How do get rid of the constrains. Is there a way to set orientation/view by clicking a button?

Browser Affected