Skip to content

Commit

Permalink
Fix the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Nov 28, 2024
1 parent 4f66633 commit 5c59a95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class MouseAngleControls {

this.manager.angle += this.deltaAngle * smoothing * this.speed * this.pixelToSpeedMultiplierY;

if (this.dynamicDistance && this.manager.distance > this.manager.controls.minDistance) {
if (this.dynamicDistance) {
let targetDistance = this.startDistance
targetDistance = Math.min(targetDistance, MapControls.getMaxDistanceForPerspectiveAngle(this.manager.angle));
targetDistance = Math.max(targetDistance, this.manager.controls.minDistance);
Expand Down

0 comments on commit 5c59a95

Please sign in to comment.