@woven-canvas/core 0.1.1 → 0.1.3

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/build/index.cjs CHANGED
@@ -3942,11 +3942,11 @@ function getPointerInput(ctx, buttons, options = {}) {
3942
3942
  const pointer = Pointer.read(ctx, entityId);
3943
3943
  return buttons.includes(pointer.button);
3944
3944
  };
3945
- const intersects = Intersect.getAll(ctx);
3946
3945
  const createEvent = (type, entityId) => {
3947
3946
  const pointer = Pointer.read(ctx, entityId);
3948
3947
  const screenPos = [pointer.position[0], pointer.position[1]];
3949
3948
  const worldPos = Camera.toWorld(ctx, screenPos);
3949
+ const intersects = intersectPoint(ctx, worldPos);
3950
3950
  return {
3951
3951
  type,
3952
3952
  ctx,