Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

refactor([issue-878]): drop unused duration param from stepFly

Adam Eivyf84b3bfc6fa6
diff --git a/client/src/utils/cityPhotoMode.js b/client/src/utils/cityPhotoMode.js
index bfa109397b..f965ee98d2 100644
--- a/client/src/utils/cityPhotoMode.js
+++ b/client/src/utils/cityPhotoMode.js
@@ -42,10 +42,9 @@ export function cyclePreset(currentId, direction = 1) {
// and `done` (true once settled) so the component can stop invalidating the demand loop.
export const FLY_DURATION = 1.1;
-export function stepFly(progress, deltaSeconds, duration = FLY_DURATION) {
+export function stepFly(progress, deltaSeconds) {
const safeDelta = Number.isFinite(deltaSeconds) && deltaSeconds > 0 ? deltaSeconds : 0;
- const safeDuration = duration > 0 ? duration : FLY_DURATION;
- const next = Math.min(1, (Number.isFinite(progress) ? progress : 1) + safeDelta / safeDuration);
+ const next = Math.min(1, (Number.isFinite(progress) ? progress : 1) + safeDelta / FLY_DURATION);
return { progress: next, t: smoothstep(next), done: next >= 1 };
}