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.cjs +2 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.mjs +2 -1
- package/dist/core.mjs.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/core.cjs
CHANGED
|
@@ -1036,11 +1036,12 @@ var _TimelineRecorder = class _TimelineRecorder {
|
|
|
1036
1036
|
document.removeEventListener("pointerup", this.onPointerUp, true);
|
|
1037
1037
|
try {
|
|
1038
1038
|
for (const anim of document.getAnimations()) {
|
|
1039
|
+
const target = anim.effect?.target;
|
|
1040
|
+
if (target?.closest?.("[data-lapse-panel]")) continue;
|
|
1039
1041
|
anim.cancel();
|
|
1040
1042
|
}
|
|
1041
1043
|
} catch (_) {
|
|
1042
1044
|
}
|
|
1043
|
-
window.requestAnimationFrame = () => 0;
|
|
1044
1045
|
const noTransitions = document.createElement("style");
|
|
1045
1046
|
noTransitions.id = "__lapse-no-transitions";
|
|
1046
1047
|
noTransitions.textContent = "*, *::before, *::after { transition: none !important; animation: none !important; }";
|