This commit is contained in:
Zsolt Viczian 2022-03-21 18:19:42 +01:00
parent 563caa3f07
commit 01789c3375

View File

@ -165,6 +165,9 @@ 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: e.pointerType });
}}
onChange={() => { onChange={() => {
props.onChange?.({ pointerType: lastPointerTypeRef.current }); props.onChange?.({ pointerType: lastPointerTypeRef.current });
}} }}