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

Stable positioning of timeline items across background updates #45

Merged

Conversation

kevinaboos
Copy link
Member

Seems to be working well.

However, it could be more efficient by having the background timeline subscriber task include some information about where the changes were made, which would allow us to avoid searching the entire timeline list for the ID of the event that was previously shown at the top.

Also added some infra for avoiding redundant drawing work based on whether a timeline item has been changed in the background, but that is not yet being used.

…king.

However, it could be more efficient by having the background timeline subscriber task
include some information about where the changes were made,
which would allow us to avoid searching the entire timeline list for the ID of
the event that was previously shown at the top.

Also added some infra for avoiding redundant drawing work based on
whether a timeline item has been changed in the background,
but that is not yet being used.
@kevinaboos
Copy link
Member Author

There are still some log statements in there for debugging, so this isn't quite ready yet.

@kevinaboos kevinaboos marked this pull request as draft February 15, 2024 07:44
…nts.

Had to manually implement the `VectorDiff::apply()` function
so we could interpose on what diffs were being applied and where.
@kevinaboos kevinaboos marked this pull request as ready for review February 15, 2024 21:51
@kevinaboos kevinaboos merged commit daa5063 into project-robius:main Feb 15, 2024
1 check passed
@kevinaboos kevinaboos deleted the stable_timeline_positioning branch February 15, 2024 21:59
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.

1 participant