timedeltafix
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user