@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.
- package/dist/engine.js +3 -0
- 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;
|