@vectojs/three 0.1.0 → 0.1.1

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.js CHANGED
@@ -630,7 +630,7 @@ var ThreeAdapter = class {
630
630
  */
631
631
  dispatchEventToTarget(entity, type, x, y, pointerId, originalEvent) {
632
632
  const a11yEl = this.vectoScene.getA11yElement(entity.id);
633
- if (a11yEl) {
633
+ if (a11yEl && a11yEl.isConnected) {
634
634
  const domEvent = this.createDOMEvent(type, x, y, pointerId, originalEvent);
635
635
  a11yEl.dispatchEvent(domEvent);
636
636
  if (type === "pointerdown" && (a11yEl instanceof HTMLInputElement || a11yEl instanceof HTMLTextAreaElement || a11yEl.getAttribute("tabindex") !== null)) {
package/dist/index.mjs CHANGED
@@ -478,10 +478,7 @@ var ThreeRenderer = class {
478
478
 
479
479
  // src/ThreeAdapter.ts
480
480
  import * as THREE2 from "three";
481
- import {
482
- Scene as VectoScene,
483
- VectoJSEvent
484
- } from "@vectojs/core";
481
+ import { Scene as VectoScene, VectoJSEvent } from "@vectojs/core";
485
482
  var ThreeAdapter = class {
486
483
  /** The Three.js CanvasTexture wrapping the offscreen Vecto canvas. */
487
484
  texture;
@@ -595,7 +592,7 @@ var ThreeAdapter = class {
595
592
  */
596
593
  dispatchEventToTarget(entity, type, x, y, pointerId, originalEvent) {
597
594
  const a11yEl = this.vectoScene.getA11yElement(entity.id);
598
- if (a11yEl) {
595
+ if (a11yEl && a11yEl.isConnected) {
599
596
  const domEvent = this.createDOMEvent(type, x, y, pointerId, originalEvent);
600
597
  a11yEl.dispatchEvent(domEvent);
601
598
  if (type === "pointerdown" && (a11yEl instanceof HTMLInputElement || a11yEl instanceof HTMLTextAreaElement || a11yEl.getAttribute("tabindex") !== null)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectojs/three",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },