canvu-react 0.3.21 → 0.3.22

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/react.js CHANGED
@@ -7903,11 +7903,12 @@ var VectorViewport = forwardRef(
7903
7903
  if (e.pointerType !== "pen") return;
7904
7904
  penDetectedRef.current = true;
7905
7905
  lastPenPointerDownAtRef.current = performance.now();
7906
+ if (isInteractiveUiTarget(e.target)) return;
7906
7907
  activePenPointerIds.add(e.pointerId);
7907
7908
  syncPenActive();
7908
7909
  };
7909
7910
  const suppressTouchUiEvent = (e) => {
7910
- if (!penDetectedRef.current) return;
7911
+ if (activePenPointerIds.size === 0) return;
7911
7912
  if (!isInteractiveUiTarget(e.target)) return;
7912
7913
  e.preventDefault();
7913
7914
  e.stopPropagation();