@opencor/opencor 0.20260612.1 → 0.20260612.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.
@@ -4747,7 +4747,7 @@ const ei = () => {
4747
4747
  ]), 1024);
4748
4748
  };
4749
4749
  }
4750
- }), Zp = "0.20260612.1", Yp = {
4750
+ }), Zp = "0.20260612.2", Yp = {
4751
4751
  version: Zp
4752
4752
  }, { version: va } = Yp, zr = C.ref(!1), Bo = C.ref(""), yl = async () => {
4753
4753
  try {
@@ -9874,11 +9874,18 @@ const c4 = /* @__PURE__ */ ac(() => C.ref(null)), sc = /* @__PURE__ */ ac(() =>
9874
9874
  const o = C.getCurrentInstance()?.vnode?.el, i = o instanceof Element ? o.closest(".opencor") : document.querySelector(".opencor");
9875
9875
  if (i) {
9876
9876
  let r = i.querySelector(`.${e}`);
9877
- r || (r = document.createElement("div"), r.className = e, r.style.cssText = "position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 99999;", r.appendChild(
9878
- Object.assign(document.createElement("style"), {
9879
- textContent: `.${e} > * { pointer-events: auto; }`
9880
- })
9881
- ), i.appendChild(r)), n.value = r;
9877
+ if (!r) {
9878
+ r = document.createElement("div"), r.className = e, r.style.cssText = "position: fixed; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 99999;", r.appendChild(
9879
+ Object.assign(document.createElement("style"), {
9880
+ textContent: `.${e} > * { pointer-events: auto; }`
9881
+ })
9882
+ );
9883
+ const a = r, l = () => {
9884
+ a.style.top = `-${window.scrollY}px`, a.style.left = `-${window.scrollX}px`;
9885
+ };
9886
+ l(), window.addEventListener("scroll", l, { passive: !0 }), i.appendChild(r);
9887
+ }
9888
+ n.value = r;
9882
9889
  }
9883
9890
  }), n;
9884
9891
  };
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "./style.css": "./dist/opencor.css"
44
44
  },
45
- "version": "0.20260612.1",
45
+ "version": "0.20260612.2",
46
46
  "libopencorVersion": "0.20260604.0",
47
47
  "scripts": {
48
48
  "build": "vite build && bun scripts/generate.version.js",