diff --git a/scripts/system/inspect.js b/scripts/system/inspect.js index 17260a4358..9aacfd14c2 100644 --- a/scripts/system/inspect.js +++ b/scripts/system/inspect.js @@ -123,10 +123,11 @@ function orientationOf(vector) { } function handleRadialMode(dx, dy) { + var MIN_INSPECT_RADIUS = 0.1; azimuth += dx / AZIMUTH_RATE; radius += radius * dy * RADIUS_RATE; - if (radius < 1) { - radius = 1; + if (radius < MIN_INSPECT_RADIUS) { + radius = MIN_INSPECT_RADIUS; } vector = {