@wardic/dom 1.2.0 → 1.3.0

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.
@@ -185,18 +185,18 @@ const exitRunOf = (
185
185
  const key = leg.key
186
186
  return Effect.suspend(() =>
187
187
  leg.machine().pipe(
188
- Machine.run((frame) => {
188
+ Machine.run((frame, dt) => {
189
189
  velocities[key] = UndefinedOr.match(frame.velocity, { onUndefined: () => 0, onDefined: identity })
190
- return commitFrame({ ...frame, value: { [key]: frame.value } })
190
+ return commitFrame({ ...frame, value: { [key]: frame.value } }, dt)
191
191
  }),
192
192
  ))
193
193
  }
194
194
  if (leg._tag === "Numbers") {
195
195
  return Effect.suspend(() =>
196
196
  leg.machine().pipe(
197
- Machine.run((frame) => {
197
+ Machine.run((frame, dt) => {
198
198
  velocitiesInto(velocities, frame)
199
- return commitFrame(frame)
199
+ return commitFrame(frame, dt)
200
200
  }),
201
201
  ))
202
202
  }