fix: update cursorButton once freedraw is released (#4996)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Valerii Gusev 2022-04-01 17:25:21 +01:00 committed by GitHub
parent 9ba7ca3845
commit 880e4feede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 12 deletions

View file

@ -252,6 +252,7 @@ export const restoreAppState = (
}
return {
...nextAppState,
cursorButton: localAppState?.cursorButton || "up",
// reset on fresh restore so as to hide the UI button if penMode not active
penDetected:
localAppState?.penDetected ??