mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
debugging iOS
This commit is contained in:
parent
8d60f22ff7
commit
fb449b6758
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,6 @@ export const ShapesSwitcher = ({
|
||||||
setDeviceType: (obj: Partial<DeviceType>) => void;
|
setDeviceType: (obj: Partial<DeviceType>) => void;
|
||||||
}) => {
|
}) => {
|
||||||
const penDetected = useDeviceType().penDetected;
|
const penDetected = useDeviceType().penDetected;
|
||||||
setAppState({ toastMessage: penDetected ? "penOn" : "penOff" }); //debug iOS
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{SHAPES.map(({ value, icon, key }, index) => {
|
{SHAPES.map(({ value, icon, key }, index) => {
|
||||||
|
@ -219,6 +218,7 @@ 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({ penMode: true });
|
setAppState({ penMode: true });
|
||||||
setDeviceType({ penDetected: true });
|
setDeviceType({ penDetected: true });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue