Skip to content
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

Editor caret cause rendering of the whole control #396

Open
latop2604 opened this issue Feb 11, 2024 · 2 comments
Open

Editor caret cause rendering of the whole control #396

latop2604 opened this issue Feb 11, 2024 · 2 comments

Comments

@latop2604
Copy link

I started playing with DevTool from Avalonia.Diagnostics and I found something strange when activating the Dirty Rec overlay.
When the focus is on the TextEditor control, each caret blink cause a render of almost the whole TextView.

carret_dirty.mp4
@danipen
Copy link
Collaborator

danipen commented Feb 12, 2024

I'd say that the caret blink should only invalidate one VisualLine....and not the whole TextView. What do you think @Gillibald?

@Gillibald
Copy link
Contributor

Gillibald commented Feb 12, 2024

The caret is part of a dedicated layer within the TextView so if that is invalidated the whole area gets invalidated. Ideally, only the caret is invalidated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants