canvu-react 0.3.20 → 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.cjs CHANGED
@@ -7910,11 +7910,12 @@ var VectorViewport = react.forwardRef(
7910
7910
  if (e.pointerType !== "pen") return;
7911
7911
  penDetectedRef.current = true;
7912
7912
  lastPenPointerDownAtRef.current = performance.now();
7913
+ if (isInteractiveUiTarget(e.target)) return;
7913
7914
  activePenPointerIds.add(e.pointerId);
7914
7915
  syncPenActive();
7915
7916
  };
7916
7917
  const suppressTouchUiEvent = (e) => {
7917
- if (!penDetectedRef.current) return;
7918
+ if (activePenPointerIds.size === 0) return;
7918
7919
  if (!isInteractiveUiTarget(e.target)) return;
7919
7920
  e.preventDefault();
7920
7921
  e.stopPropagation();