louisstow/Crafty — Issue #163: Animation Over Time Fns Should Default to 1 Frame
Author: Havvy
Created: 2012-01-05 03:19:36+00:00
State: open

For example, the following two method calls should have the same behavior:

Crafty.viewport.centerOn(entity)
Crafty.viewport.centerOn(entity, 1)

In viewport.pan(), the line change would be

- if (time == 0) time = 1;
+ if (time < 1) time = 1;