This commit is contained in:
Zsolt Viczian 2022-03-21 18:25:11 +01:00
parent 01789c3375
commit 89a0dbafde

View File

@ -166,7 +166,7 @@ export const ToolButton = React.forwardRef((props: ToolButtonProps, ref) => {
data-testid={props["data-testid"]} data-testid={props["data-testid"]}
id={`${excalId}-${props.id}`} id={`${excalId}-${props.id}`}
onPointerDown={(e) => { onPointerDown={(e) => {
props.onPointerDown?.({ pointerType: e.pointerType }); props.onPointerDown?.({ pointerType: "pen" });
}} }}
onChange={() => { onChange={() => {
props.onChange?.({ pointerType: lastPointerTypeRef.current }); props.onChange?.({ pointerType: lastPointerTypeRef.current });