debugging iOS

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

View File

@ -218,8 +218,8 @@ export const ShapesSwitcher = ({
aria-keyshortcuts={shortcut} aria-keyshortcuts={shortcut}
data-testid={value} data-testid={value}
onChange={({ pointerType }) => { onChange={({ pointerType }) => {
setAppState({ toastMessage: penDetected ? "penOn" : "penOff" }); //debug iOS
if (!penDetected && pointerType === "pen") { if (!penDetected && pointerType === "pen") {
setAppState({ toastMessage: "change mode" }); //debug iOS
setAppState({ penMode: true }); setAppState({ penMode: true });
setDeviceType({ penDetected: true }); setDeviceType({ penDetected: true });
} }