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: off-by-one error in tree view caching logic #1330

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

tom-anders
Copy link
Collaborator

This bug only occurs if a mainline part consists of a single move - In that case, tapping a move in one of its sidelines will not invalidate the subtree cache, leading to the "current move" highlight not being updated.

Demonstration of the bug:

bug.webm

With this PR:

fix.webm

@veloce veloce merged commit 73cc2ff into lichess-org:main Jan 6, 2025
1 check passed
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