@3cr/viewer-browser 0.0.159 → 0.0.161

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.
@@ -8663,6 +8663,7 @@ const Rv = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20stan
8663
8663
  l?.addEventListener("wheel", function(g) {
8664
8664
  g.preventDefault();
8665
8665
  const u = new WheelEvent("wheel", {
8666
+ ...g,
8666
8667
  deltaY: g.deltaY
8667
8668
  });
8668
8669
  s.dispatchEvent(u);
@@ -8676,17 +8677,15 @@ const Rv = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20stan
8676
8677
  s.dispatchEvent(f);
8677
8678
  });
8678
8679
  }
8679
- i("mousedown"), i("mouseup"), i("mouseout"), i("mouseover"), i("mouseenter"), i("mouseleave"), i("mousemove"), Object.keys(l).forEach((g) => {
8680
- /^on/.test(g) && l?.addEventListener(
8681
- g.slice(2),
8682
- function(u) {
8683
- u.preventDefault();
8684
- const f = new Event(g.slice(2), { ...u });
8685
- s.dispatchEvent(f);
8686
- }
8687
- // false
8688
- );
8689
- });
8680
+ i("mousedown"), i("mouseup"), i("mouseout"), i("mouseover"), i("mouseenter"), i("mouseleave"), i("mousemove"), i("contextmenu"), i("dblclick"), l?.addEventListener(
8681
+ "*",
8682
+ function(g) {
8683
+ console.log(`${g.type}`), g.preventDefault();
8684
+ const u = new Event(g.type, { ...g });
8685
+ s.dispatchEvent(u);
8686
+ }
8687
+ // false
8688
+ );
8690
8689
  });
8691
8690
  async function o(s) {
8692
8691
  await Wu(JSON.parse(s));