Fix the fix

This commit is contained in:
Lukas Rieger (Blue) 2024-11-28 01:04:43 +01:00
parent 4f666337b0
commit 5c59a957ff
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -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);