@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.js CHANGED
@@ -3869,11 +3869,11 @@ function getPointerInput(ctx, buttons, options = {}) {
3869
3869
  const pointer = Pointer.read(ctx, entityId);
3870
3870
  return buttons.includes(pointer.button);
3871
3871
  };
3872
- const intersects = Intersect.getAll(ctx);
3873
3872
  const createEvent = (type, entityId) => {
3874
3873
  const pointer = Pointer.read(ctx, entityId);
3875
3874
  const screenPos = [pointer.position[0], pointer.position[1]];
3876
3875
  const worldPos = Camera.toWorld(ctx, screenPos);
3876
+ const intersects = intersectPoint(ctx, worldPos);
3877
3877
  return {
3878
3878
  type,
3879
3879
  ctx,