Fix: reset after annotation selection
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
@@ -166,7 +166,10 @@ toggleFullScreen = function(glCont) {
|
||||
* @param {ModelViewer} mView
|
||||
*/
|
||||
resetView = function(mView) {
|
||||
mView.cameraOrbit = mView.cameraOrbit
|
||||
mView.cameraTarget = mView.cameraTarget
|
||||
mView.fieldOfView = mView.fieldOfView
|
||||
const resetOrb = mView.getAttribute('camera-orbit') || 'auto auto auto'
|
||||
const resetTarg = mView.getAttribute('camera-target') || 'auto auto auto'
|
||||
const resetFov = mView.getAttribute('field-of-view') || 'auto'
|
||||
mView.cameraOrbit = resetOrb
|
||||
mView.cameraTarget = resetTarg
|
||||
mView.fieldOfView = resetFov
|
||||
}
|
||||
Reference in New Issue
Block a user