mirror of
https://github.com/xibyte/jsketcher
synced 2026-01-15 20:51:54 +01:00
Make pan speed reasonable on small models.
This commit is contained in:
parent
c429b69f18
commit
7516edc0e1
1 changed files with 3 additions and 0 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue