supermedium / superframe

:package: A super collection of A-Frame components.
https://supermedium.com/superframe/
MIT License
1.38k stars 424 forks source link

Orbit-Controls: Rotating seems to reset the dolly maxDistance to 180 #302

Closed GandrLu closed 2 years ago

GandrLu commented 2 years ago

I add the orbit-controls component to my a-entity camera with maxDistance = 12 like this: orbit-controls="autoRotate: true; autoRotateSpeed: 0.3; target: 0.0 1.5 0.0; minDistance: 0.5; maxDistance: 12; initialPosition: 0 2 12"

The restriction works as long as I am dollying or panning but when I rotate and release the button it is set to 180, as I could see by adding console logs to OrbitControls.js.

Occured in firefox on windows 10 desktop.

GandrLu commented 2 years ago

Closed, because I discovered it is not happening in the superframe example of orbit-controls