You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In both undo() and redo() there is a call to redraw() which is async. In my app I perform an action on the image immediately after each call to undo and redo.
Something like this.. <button @click="writing canvas.redo(); doSomething(image);">
I think the call to redraw() hasn't finished when doSomething() function is called.
I suggest making redo() and undo() async and calling redraw() with the await keyword,
The text was updated successfully, but these errors were encountered:
In both undo() and redo() there is a call to redraw() which is async. In my app I perform an action on the image immediately after each call to undo and redo.
Something like this..
<button @click="writing canvas.redo(); doSomething(image);">
I think the call to redraw() hasn't finished when doSomething() function is called.
I suggest making redo() and undo() async and calling redraw() with the await keyword,
The text was updated successfully, but these errors were encountered: