@braccato/core 1.16.11 → 1.16.12

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.
Files changed (2) hide show
  1. package/dist/engine.js +3 -0
  2. package/package.json +1 -1
package/dist/engine.js CHANGED
@@ -2443,6 +2443,9 @@ export function tickView(engine, currentTime, options) {
2443
2443
  if (isPlaying)
2444
2444
  lineData.isAnimating = false; // reset the animation against current media time
2445
2445
  }
2446
+ // Lead-in animations have no timing sample for the drift check, so a jump while playing must reset them.
2447
+ if (timeJumped && isPlaying && lineData.isAnimating)
2448
+ resetLineAnimationState(lineData);
2446
2449
  updateWordStates(lineData, currentTime);
2447
2450
  const nativeTimingSample = lineNativeTimingSample(lineData, currentTime);
2448
2451
  let usedNativeTimingSampleForDrift = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@braccato/core",
3
- "version": "1.16.11",
3
+ "version": "1.16.12",
4
4
  "description": "Synchronized lyrics renderer with word-by-word animations",
5
5
  "type": "module",
6
6
  "license": "MIT",