@canvas-harness/react 0.1.9 → 0.1.11

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
@@ -206,6 +206,7 @@ var useArrowTool = (ref, store, enabled, defaults) => {
206
206
  };
207
207
  const onPointerDown = (e) => {
208
208
  if (e.button !== 0) return;
209
+ if (store.getInteractionState().mode === "editing") return;
209
210
  pointerDownAt = screenFromEvent(e);
210
211
  const world = worldFromEvent(e);
211
212
  const { end } = endFromWorldPoint(world);
@@ -455,6 +456,7 @@ var useInteractionGesture = (ref, store, tool) => {
455
456
  };
456
457
  const onPointerDown = (e) => {
457
458
  if (e.button !== 0) return;
459
+ if (store.getInteractionState().mode === "editing") return;
458
460
  if (e.pointerType === "pen") notePenActive(palm);
459
461
  else if (e.pointerType === "touch" && shouldRejectTouch(palm, Date.now())) return;
460
462
  pointerDownAt = screenFromEvent(e);