@dcl/playground-assets 7.1.1 → 7.1.2-4408174335.commit-e673686

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
@@ -42168,6 +42168,7 @@
42168
42168
  const UiInputResult = UiInputResult$1(engine);
42169
42169
  const UiDropdown = UiDropdown$1(engine);
42170
42170
  const UiDropdownResult = UiDropdownResult$1(engine);
42171
+ const PointerEvents = PointerEvents$1(engine);
42171
42172
  // Component ID Helper
42172
42173
  const getComponentId = {
42173
42174
  uiTransform: UiTransform.componentId,
@@ -42238,6 +42239,7 @@
42238
42239
  function removeChildEntity(instance) {
42239
42240
  changeEvents.delete(instance.entity);
42240
42241
  engine.removeEntity(instance.entity);
42242
+ pointerEventTick.delete(instance.entity);
42241
42243
  for (const child of instance._child) {
42242
42244
  removeChildEntity(child);
42243
42245
  }
@@ -42377,12 +42379,21 @@
42377
42379
  }
42378
42380
  }
42379
42381
  }
42382
+ const pointerEventTick = new Set();
42380
42383
  return {
42381
42384
  update: function (component) {
42382
42385
  if (changeEvents.size) {
42383
42386
  handleOnChange(UiInput.componentId, UiInputResult);
42384
42387
  handleOnChange(UiDropdown.componentId, UiDropdownResult);
42385
42388
  }
42389
+ for (const [entity] of engine.getEntitiesWith(UiTransform, PointerEvents)) {
42390
+ if (pointerEventTick.has(entity)) {
42391
+ continue;
42392
+ }
42393
+ pointerEventTick.add(entity);
42394
+ // Re-send this pointer-event because of #issue
42395
+ PointerEvents.getMutable(entity);
42396
+ }
42386
42397
  return reconciler.updateContainer(component, root, null);
42387
42398
  },
42388
42399
  getEntities: () => Array.from(entities)