testing iOS
This commit is contained in:
parent
89a0dbafde
commit
38b58ea1da
@ -150,6 +150,7 @@ export const ToolButton = React.forwardRef((props: ToolButtonProps, ref) => {
|
|||||||
title={props.title}
|
title={props.title}
|
||||||
onPointerDown={(event) => {
|
onPointerDown={(event) => {
|
||||||
lastPointerTypeRef.current = event.pointerType || null;
|
lastPointerTypeRef.current = event.pointerType || null;
|
||||||
|
props.onPointerDown?.({ pointerType: event.pointerType || null });
|
||||||
}}
|
}}
|
||||||
onPointerUp={() => {
|
onPointerUp={() => {
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
@ -165,9 +166,6 @@ export const ToolButton = React.forwardRef((props: ToolButtonProps, ref) => {
|
|||||||
aria-keyshortcuts={props["aria-keyshortcuts"]}
|
aria-keyshortcuts={props["aria-keyshortcuts"]}
|
||||||
data-testid={props["data-testid"]}
|
data-testid={props["data-testid"]}
|
||||||
id={`${excalId}-${props.id}`}
|
id={`${excalId}-${props.id}`}
|
||||||
onPointerDown={(e) => {
|
|
||||||
props.onPointerDown?.({ pointerType: "pen" });
|
|
||||||
}}
|
|
||||||
onChange={() => {
|
onChange={() => {
|
||||||
props.onChange?.({ pointerType: lastPointerTypeRef.current });
|
props.onChange?.({ pointerType: lastPointerTypeRef.current });
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user