timedeltafix

This commit is contained in:
2026-05-07 21:46:46 +02:00
parent b353a96bfb
commit 6055b74ccf
13 changed files with 34 additions and 30 deletions

View File

@@ -105,14 +105,14 @@ function Focus.update()
if driven then return end
if closing then
radius = radius - speed
radius = radius - speed * Context.dt60
if radius <= 0 then
local cb = on_complete
Focus.stop()
if cb then cb() end
end
else
radius = radius + speed
radius = radius + speed * Context.dt60
if radius >= max_radius(center_x, center_y) then
local cb = on_complete
Focus.stop()