debugging iOS

This commit is contained in:
zsviczian 2022-03-21 15:24:01 +01:00 committed by GitHub
parent 8d60f22ff7
commit fb449b6758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,7 +196,6 @@ export const ShapesSwitcher = ({
setDeviceType: (obj: Partial<DeviceType>) => void;
}) => {
const penDetected = useDeviceType().penDetected;
setAppState({ toastMessage: penDetected ? "penOn" : "penOff" }); //debug iOS
return (
<>
{SHAPES.map(({ value, icon, key }, index) => {
@ -219,6 +218,7 @@ export const ShapesSwitcher = ({
aria-keyshortcuts={shortcut}
data-testid={value}
onChange={({ pointerType }) => {
setAppState({ toastMessage: penDetected ? "penOn" : "penOff" }); //debug iOS
if (!penDetected && pointerType === "pen") {
setAppState({ penMode: true });
setDeviceType({ penDetected: true });