This commit is contained in:
Zsolt Viczian 2022-03-20 17:07:25 +01:00
parent 0ecb53e2f2
commit 24d7380333
2 changed files with 4 additions and 9 deletions

View file

@ -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 (