@esotericsoftware/spine-canvas 4.2.40 → 4.2.41

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.
@@ -4386,11 +4386,11 @@ var spine = (() => {
4386
4386
  set mixDuration(mixDuration) {
4387
4387
  this._mixDuration = mixDuration;
4388
4388
  }
4389
- setMixDurationWithDelta(mixDuration, delay) {
4389
+ setMixDurationWithDelay(mixDuration, delay) {
4390
4390
  this._mixDuration = mixDuration;
4391
- if (this.previous != null && this.delay <= 0)
4392
- this.delay += this.previous.getTrackComplete() - delay;
4393
- this.delay = this.delay;
4391
+ if (this.previous != null && delay <= 0)
4392
+ delay += this.previous.getTrackComplete() - mixDuration;
4393
+ this.delay = delay;
4394
4394
  }
4395
4395
  /** Controls how properties keyed in the animation are mixed with lower tracks. Defaults to {@link MixBlend#replace}, which
4396
4396
  * replaces the values from the lower tracks with the animation values. {@link MixBlend#add} adds the animation values to