saccade 0.0.1 → 0.0.2

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/core.mjs CHANGED
@@ -1004,11 +1004,12 @@ var _TimelineRecorder = class _TimelineRecorder {
1004
1004
  document.removeEventListener("pointerup", this.onPointerUp, true);
1005
1005
  try {
1006
1006
  for (const anim of document.getAnimations()) {
1007
+ const target = anim.effect?.target;
1008
+ if (target?.closest?.("[data-lapse-panel]")) continue;
1007
1009
  anim.cancel();
1008
1010
  }
1009
1011
  } catch (_) {
1010
1012
  }
1011
- window.requestAnimationFrame = () => 0;
1012
1013
  const noTransitions = document.createElement("style");
1013
1014
  noTransitions.id = "__lapse-no-transitions";
1014
1015
  noTransitions.textContent = "*, *::before, *::after { transition: none !important; animation: none !important; }";