Make pan speed reasonable on small models.

This commit is contained in:
Mike Molinari 2022-08-15 22:46:41 +00:00
parent c429b69f18
commit 7516edc0e1

View file

@ -8,6 +8,8 @@
* @author Luca Antiga / http://lantiga.github.io
*/
import DPR from 'dpr';
export function CADTrackballControls( object, domElement ) {
var _this = this;
@ -304,6 +306,7 @@ export function CADTrackballControls( object, domElement ) {
};
this.evaluate = function () {
this.panSpeed = DPR/this.object.zoom;
_eye.subVectors( _this.object.position, _this.target );