easter-egg-quest 1.0.9 → 1.0.10

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.
@@ -4170,7 +4170,7 @@ class MotionStage {
4170
4170
  this._narrativeIndex = 0;
4171
4171
  this._lastFadeNarrativeTime = 0;
4172
4172
  this._introPlayed = false;
4173
- this.FADE_THRESHOLD_MS = 2500;
4173
+ this.FADE_THRESHOLD_MS = 500;
4174
4174
  this.config = config;
4175
4175
  this.script = script;
4176
4176
  this.input = input;
@@ -4220,9 +4220,9 @@ class MotionStage {
4220
4220
  }
4221
4221
  } else {
4222
4222
  const stillDuration = this.input.stillDuration;
4223
- if (stillDuration > this.FADE_THRESHOLD_MS && this._movingAccum > 500) {
4223
+ if (stillDuration > this.FADE_THRESHOLD_MS && this._movingAccum > 0) {
4224
4224
  this._fades++;
4225
- this._movingAccum = Math.max(0, this._movingAccum - stillDuration * 0.6);
4225
+ this._movingAccum = 0;
4226
4226
  this._handleFade();
4227
4227
  }
4228
4228
  }