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

fix: Removed annotation caching [PT-185363141] #82

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

dougmartin
Copy link
Member

@dougmartin dougmartin commented Jun 24, 2024

This fixes a crash when comments are deleted. This also fixes broken comment moves, selection and text updates.

A some point a change was made that caused the cache to get out of sync with the canvas. This removes the cache and instead reads directly from the canvas.

This fixes a crash when comments are deleted.  This also fixes broken comment moves, selection and text updates.

A some point a change was made that caused the cache to get out of sync with the canvas.  This removes the cache and instead reads directly from the canvas.
@dougmartin dougmartin changed the title fix: Deleting and updating comments [PT-185363141] fix: Removed annotation caching [PT-185363141] Jun 24, 2024
Copy link
Member

@pjanik pjanik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I don't think I'm familiar with annotations work and why there was a cache, but direct lookup sounds better. I doubt we ever deal with a significant number of objects in canvas.

@dougmartin dougmartin merged commit fcf7e48 into master Jun 25, 2024
1 check passed
@dougmartin dougmartin deleted the 185363141-fix-annotations branch June 25, 2024 13:46
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

Successfully merging this pull request may close these issues.

2 participants