@canvas-harness/react 0.1.11 → 0.1.13

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.cjs CHANGED
@@ -1187,10 +1187,7 @@ function CanvasSurface({
1187
1187
  if (e.button !== 0) return;
1188
1188
  if (!isShapeTool(toolRef.current)) return;
1189
1189
  if (store.getInteractionState().mode === "editing") return;
1190
- const camera = store.getCamera();
1191
- const world = core.screenToWorld(screenFromEvent(e), camera);
1192
- if (core.hitTestAny(store, world, camera.z)) return;
1193
- startWorld = world;
1190
+ startWorld = worldFromEvent(e);
1194
1191
  startScreen = screenFromEvent(e);
1195
1192
  activePointerId = e.pointerId;
1196
1193
  committed = false;