@soomo/text-annotator 3.0.0-staging.58 → 3.0.0-staging.59
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.
|
@@ -302,7 +302,7 @@ const Vt = /* @__PURE__ */ $e(Pe), je = (t) => {
|
|
|
302
302
|
document.addEventListener("scroll", u, { capture: !0, passive: !0 });
|
|
303
303
|
const y = Vt(() => {
|
|
304
304
|
i.recalculatePositions(), f == null || f.reset(), p();
|
|
305
|
-
});
|
|
305
|
+
}, 10);
|
|
306
306
|
window.addEventListener("resize", y);
|
|
307
307
|
const S = new ResizeObserver(y);
|
|
308
308
|
S.observe(t);
|
|
@@ -353,7 +353,7 @@ const Vt = /* @__PURE__ */ $e(Pe), je = (t) => {
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
|
-
}), i = Vt(() => Fe(e));
|
|
356
|
+
}), i = Vt(() => Fe(e), 10);
|
|
357
357
|
return window.addEventListener("resize", i), {
|
|
358
358
|
destroy: () => {
|
|
359
359
|
e.remove(), i.clear(), window.removeEventListener("resize", i);
|
|
@@ -2264,7 +2264,7 @@ const oe = 300, vo = (t, e, n) => {
|
|
|
2264
2264
|
bodies: [],
|
|
2265
2265
|
target: l
|
|
2266
2266
|
}, k.LOCAL), h.userSelect(l.annotation, d)));
|
|
2267
|
-
}), C = (w) => {
|
|
2267
|
+
}, 10), C = (w) => {
|
|
2268
2268
|
var O;
|
|
2269
2269
|
(O = w.target.parentElement) != null && O.closest(P) || (d = De(w), p = d.button === 0);
|
|
2270
2270
|
}, g = (w) => {
|