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