@zcomponent/core 1.29.0-beta.3 → 1.29.1-beta.1

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.
@@ -161,7 +161,18 @@ export class StreamTrack extends Track {
161
161
  }
162
162
  else {
163
163
  const [bt, loopNumber] = resolveClipTimeLoops(t, block.t0, block.s0, block.rate, this.stream?.length?.() ?? Infinity, rate * block.rate < 0, block.t1);
164
- if ((t === block.t1 && rate >= +0) || (t === block.t0 && rate < 0)) {
164
+ if (block.t1 !== undefined && block.t1 === block.t0) {
165
+ // Zero-length (state) block: seek to its start offset and hold. Without
166
+ // this the boundary check below pauses before seeking, so the state
167
+ // never applies (e.g. a "reset" streamed from a sub-component).
168
+ if (this._lastLoopNumber !== loopNumber || lastBlock !== block) {
169
+ this._lastLoopNumber = loopNumber;
170
+ force = true;
171
+ this.stream?.seek(block.s0);
172
+ }
173
+ desiredState = StreamState.Paused;
174
+ }
175
+ else if ((t === block.t1 && rate >= +0) || (t === block.t0 && rate < 0)) {
165
176
  desiredState = StreamState.Paused;
166
177
  force = true;
167
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zcomponent/core",
3
- "version": "1.29.0-beta.3",
3
+ "version": "1.29.1-beta.1",
4
4
  "description": "The core component model and built-in functionality for Mattercraft.",
5
5
  "author": "Zappar Limited",
6
6
  "license": "Proprietary",