fix(viewer): double tap zoom to object made nicer; other minor improvements

This commit is contained in:
Dimitrie Stefanescu
2021-01-13 23:17:48 +02:00
parent 39f0e827a0
commit 113b027f99
4 changed files with 13 additions and 13 deletions
@@ -161,7 +161,7 @@ export default class SceneObjectManager {
// see this discussion: https://github.com/mrdoob/three.js/pull/14526#issuecomment-497254491
zoomToBox( box ) {
const fitOffset = 1.2
const fitOffset = 0.9
const size = box.getSize( new THREE.Vector3() )
const center = box.getCenter( new THREE.Vector3() )