mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-12 11:59:58 +02:00
penMode
This commit is contained in:
@@ -2867,11 +2867,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
//the user can disable this by toggling the penMode button
|
||||
if (!this.deviceType.penDetected && event.pointerType === "pen") {
|
||||
this.deviceType = updateObject(this.deviceType, { penDetected: true });
|
||||
this.setState((prevState) => {
|
||||
return {
|
||||
penMode: true,
|
||||
};
|
||||
});
|
||||
this.setState({ penMode: true });
|
||||
}
|
||||
|
||||
if (
|
||||
|
Reference in New Issue
Block a user