-
-
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 and cursor leaves trace when zooming #5043
Comments
**Hint ** This only happens when you select a character that is attached to the selection box. |
@samael205 what do your mean? |
@samael205 Not true, scroll faster and it will happen for selected words in the middle as well (or even if the cursor is in the middle) |
Yes this is a problem, i noticed it too. So the Itext does not clear all the upper canvas to save on speed. It clears the part where it is. I think at least setZoom ( and setViewportTansform ) should take care of cleaning before reRendering |
Wow, that was fast! thx 🙏🏅 |
@asturur Still having this issue. Was this fix removed? I tried to override setViewportTansform and apply it again on the static canvas since it was only there on the normal canvas but i still have this problem. |
no that i know of |
We had set renderOnAddRemove to false so the fix was never hit. Changed that and it now looks as it should so the fix still works. |
i would expect renderOnAddRemove to not interfere with the fix. Why it does? can you help me understand? |
The only code that was added in setViewportTransform in canvas.class.js that does something is this code:
As i understand it, it is In static_canvas.class.js on line 698 you have this line: |
that is weird! can you open a separate bug ticket so i can track it? Is also important that you make a jsfiddle that makes the problem actually happen so that it can be used to see if the fix is effective. |
Using fabric v2.3.x
Test Case
http://jsfiddle.net/n2yLv0h9/8/
Steps to reproduce
Create a textbox, select the text or click to enable editing with flashing cursor. Then zoom(fast) the canvas.
Expected Behavior
Selection/cursor is re-drawn within the textbox.
Actual Behavior
Selection/cursor leaves a trace outside of the textbox.
Image
The text was updated successfully, but these errors were encountered: