From 38b58ea1da3ee4527734db7df951133308be7072 Mon Sep 17 00:00:00 2001 From: Zsolt Viczian Date: Mon, 21 Mar 2022 18:39:00 +0100 Subject: [PATCH] testing iOS --- src/components/ToolButton.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/ToolButton.tsx b/src/components/ToolButton.tsx index 8da77388f..328c135c6 100644 --- a/src/components/ToolButton.tsx +++ b/src/components/ToolButton.tsx @@ -150,6 +150,7 @@ export const ToolButton = React.forwardRef((props: ToolButtonProps, ref) => { title={props.title} onPointerDown={(event) => { lastPointerTypeRef.current = event.pointerType || null; + props.onPointerDown?.({ pointerType: event.pointerType || null }); }} onPointerUp={() => { requestAnimationFrame(() => { @@ -165,9 +166,6 @@ export const ToolButton = React.forwardRef((props: ToolButtonProps, ref) => { aria-keyshortcuts={props["aria-keyshortcuts"]} data-testid={props["data-testid"]} id={`${excalId}-${props.id}`} - onPointerDown={(e) => { - props.onPointerDown?.({ pointerType: "pen" }); - }} onChange={() => { props.onChange?.({ pointerType: lastPointerTypeRef.current }); }}