-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Selection highlighting smudges canvas while animating #7216
Comments
Looks like the root cause is Would it be safe to clear the entire top context? Or would the preferred option be to store the last known coords of a selection/cursor during the render cycle and clear that area next time around. I'd love to help out and this seems like a straightforward bug to dip my toes into, would love to hear what the preferred approach would be. |
Yes, this was thought as an |
Alternatively is maybe possible to do a better sync of the request animation frame with the current object position |
I'll take a shot at option #2 and raise a pr when it's done. |
yes please! if you have questions ask |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've put some thought into it and would it be practical for animate to have a beforeChange event? This would allow us to clear context top before the transformation matrix changes. Thanks @asturur, sorry for the delay getting back to this |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Version
4.5.1
Test Case
http://jsfiddle.net/m0jpr3Ld/
Information about environment
Chrome 91.0.4472.114
Steps to reproduce
Expected Behavior
Selection highlighting does not smudge the canvas
Actual Behavior
Selection highlighting is drawn "a path" while animation
P.S. Same happens with a cursor
The text was updated successfully, but these errors were encountered: