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.mjs CHANGED
@@ -1013,11 +1013,12 @@ var _TimelineRecorder = class _TimelineRecorder {
1013
1013
  document.removeEventListener("pointerup", this.onPointerUp, true);
1014
1014
  try {
1015
1015
  for (const anim of document.getAnimations()) {
1016
+ const target = anim.effect?.target;
1017
+ if (target?.closest?.("[data-lapse-panel]")) continue;
1016
1018
  anim.cancel();
1017
1019
  }
1018
1020
  } catch (_) {
1019
1021
  }
1020
- window.requestAnimationFrame = () => 0;
1021
1022
  const noTransitions = document.createElement("style");
1022
1023
  noTransitions.id = "__lapse-no-transitions";
1023
1024
  noTransitions.textContent = "*, *::before, *::after { transition: none !important; animation: none !important; }";