-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can only undo for one step #98
Comments
I found this part in the code, maybe it's related
|
and by getting context and clear it manually it works,
|
@oyuntuayC thank you for reporting the issue! I believe I know what's going on here - the fact that manually doing a However, I now see how this could lead to issues like yours. Atrament currently toggles
I'll make these changes and release them in v4.1.0, hopefully today or tomorrow. |
@oyuntuayC a fix to this has now been published in v4.1.0 - please do let me know if you encounter any other issues! |
I‘m using the same implementation as #71, But I can only undo for one step. I noticed that each time I undo, the previous strokes seems overlapped by new stokes.
It's not very obvious in the video, but the first time I click undo, everything works fine. By the second time I click undo, the first two stoke would became bolder, the third time I do it, only the first stroke became bolder. Nothing seems to change until I draw something manually and click again.
So I assume that clear() only works for one time unless the user draw something again.
The text was updated successfully, but these errors were encountered: