iOS debug
This commit is contained in:
parent
bb04943564
commit
563caa3f07
@ -217,12 +217,14 @@ export const ShapesSwitcher = ({
|
|||||||
aria-label={capitalizeString(label)}
|
aria-label={capitalizeString(label)}
|
||||||
aria-keyshortcuts={shortcut}
|
aria-keyshortcuts={shortcut}
|
||||||
data-testid={value}
|
data-testid={value}
|
||||||
onChange={({ pointerType }) => {
|
onPointerDown={({ pointerType }) => {
|
||||||
setAppState({ toastMessage: pointerType }); //debug iOS
|
setAppState({ toastMessage: pointerType }); //debug iOS
|
||||||
if (!penDetected && pointerType === "pen") {
|
if (!penDetected && pointerType === "pen") {
|
||||||
setAppState({ penMode: true });
|
setAppState({ penMode: true });
|
||||||
setDeviceType({ penDetected: true });
|
setDeviceType({ penDetected: true });
|
||||||
}
|
}
|
||||||
|
}}
|
||||||
|
onChange={({ pointerType }) => {
|
||||||
setAppState({
|
setAppState({
|
||||||
elementType: value,
|
elementType: value,
|
||||||
multiElement: null,
|
multiElement: null,
|
||||||
|
@ -48,6 +48,7 @@ type ToolButtonProps =
|
|||||||
type: "radio";
|
type: "radio";
|
||||||
checked: boolean;
|
checked: boolean;
|
||||||
onChange?(data: { pointerType: PointerType | null }): void;
|
onChange?(data: { pointerType: PointerType | null }): void;
|
||||||
|
onPointerDown?(data: { pointerType: PointerType }): void;
|
||||||
});
|
});
|
||||||
|
|
||||||
export const ToolButton = React.forwardRef((props: ToolButtonProps, ref) => {
|
export const ToolButton = React.forwardRef((props: ToolButtonProps, ref) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user