mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
penMode
This commit is contained in:
parent
0ecb53e2f2
commit
24d7380333
2 changed files with 4 additions and 9 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue