Skip to content

Commit

Permalink
Fix zoomSensitivity 0 not work. Fix #71
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Jun 4, 2017
1 parent 0287100 commit 3c7ff6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/OrbitControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ var OrbitControl = Base.extend(function () {
this._distance - this.minDistance,
this.maxDistance - this._distance
));
this._zoomSpeed = (delta > 0 ? -1 : 1) * Math.max(distance / 20 * this.zoomSensitivity, 0.5);
this._zoomSpeed = (delta > 0 ? -1 : 1) * Math.max(distance / 20, 0.5) * this.zoomSensitivity;

this._rotating = false;

Expand Down

0 comments on commit 3c7ff6f

Please sign in to comment.