@canvas-harness/react 0.1.10 → 0.1.12
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 +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -208,6 +208,7 @@ var useArrowTool = (ref, store, enabled, defaults) => {
|
|
|
208
208
|
};
|
|
209
209
|
const onPointerDown = (e) => {
|
|
210
210
|
if (e.button !== 0) return;
|
|
211
|
+
if (store.getInteractionState().mode === "editing") return;
|
|
211
212
|
pointerDownAt = screenFromEvent(e);
|
|
212
213
|
const world = worldFromEvent(e);
|
|
213
214
|
const { end } = endFromWorldPoint(world);
|
|
@@ -457,6 +458,7 @@ var useInteractionGesture = (ref, store, tool) => {
|
|
|
457
458
|
};
|
|
458
459
|
const onPointerDown = (e) => {
|
|
459
460
|
if (e.button !== 0) return;
|
|
461
|
+
if (store.getInteractionState().mode === "editing") return;
|
|
460
462
|
if (e.pointerType === "pen") core.notePenActive(palm);
|
|
461
463
|
else if (e.pointerType === "touch" && core.shouldRejectTouch(palm, Date.now())) return;
|
|
462
464
|
pointerDownAt = screenFromEvent(e);
|