mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-12-05 18:55:28 +03:00
debugging iOS
This commit is contained in:
1 parent
fb449b6758
commit
7bcc1f2a41
1 file changed
+1
-1
@@ -218,8 +218,8 @@ export const ShapesSwitcher = ({
|
||||
aria-keyshortcuts={shortcut}
|
||||
data-testid={value}
|
||||
onChange={({ pointerType }) => {
|
||||
setAppState({ toastMessage: penDetected ? "penOn" : "penOff" }); //debug iOS
|
||||
if (!penDetected && pointerType === "pen") {
|
||||
setAppState({ toastMessage: "change mode" }); //debug iOS
|
||||
setAppState({ penMode: true });
|
||||
setDeviceType({ penDetected: true });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user