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/index.cjs CHANGED
@@ -1043,11 +1043,12 @@ var _TimelineRecorder = class _TimelineRecorder {
1043
1043
  document.removeEventListener("pointerup", this.onPointerUp, true);
1044
1044
  try {
1045
1045
  for (const anim of document.getAnimations()) {
1046
+ const target = anim.effect?.target;
1047
+ if (target?.closest?.("[data-lapse-panel]")) continue;
1046
1048
  anim.cancel();
1047
1049
  }
1048
1050
  } catch (_) {
1049
1051
  }
1050
- window.requestAnimationFrame = () => 0;
1051
1052
  const noTransitions = document.createElement("style");
1052
1053
  noTransitions.id = "__lapse-no-transitions";
1053
1054
  noTransitions.textContent = "*, *::before, *::after { transition: none !important; animation: none !important; }";