@multiplekex/shallot 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplekex/shallot",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -206,7 +206,7 @@ export function ensureResolved(state: State, tweenEid: number): void {
206
206
  const elapsed = Tween.elapsed[tweenEid];
207
207
  const duration = Tween.duration[tweenEid];
208
208
 
209
- if (elapsed >= duration) return;
209
+ if (duration > 0 && elapsed >= duration) return;
210
210
 
211
211
  const targetEid = state.getFirstRelationTarget(tweenEid, TweenTarget);
212
212
  const binding = getFieldAccessor(tweenEid);