-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Erasing faster skips some strokes #1247
Comments
If I'm not mistaken, the eraser works per event. Hence if you move fast, you may not have a (x,y) coordinate close to every line. The fix would be to store the previous coordinate (x_0,y_0) and when a new event (x,y) happens, erase the polygon corresponding to the space that the eraser got through between the two events (Minkowski sum between the line between the two events and the eraser square) |
Whatever it is. It's annoying when I try to do things quickly. |
I've started to look at where/how I want to do this. Ideally, I'd want #1235 to land first though before starting this part. It must be one of the most widespread bug for this kind of application (present in xournalpp, lorien, saber, journal ..) It's made worse by this line
That limits the event rate of the eraser to the display refresh rate (so if you have 3 events over a frame, only the last one is sent) |
Description
Erasing faster skips some strokes.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Eraser should erase all the lines it crosses.
Console Output
Video
Screencast.from.2024-10-04.14-14-01.mp4
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: