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 #955 #972

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Fix #955 #972

wants to merge 1 commit into from

Conversation

nicolasfranck
Copy link
Contributor

@nicolasfranck nicolasfranck commented Mar 15, 2024

Fixes #955

As noted in the issue, I do not know if this breaks other stuff,
i.e. data that is not shown in openseadragon.

Copy link

codesandbox bot commented Mar 15, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Mar 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
universalviewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 10:04am

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@demiankatz
Copy link
Contributor

Thanks, @nicolasfranck. I see that selectCurrentTreeNode() contains a 4-year-old TODO comment which implies that the eventual plan was to eliminate the need for two separate select methods entirely... so if that refactoring eventually occurs, your proposed change would need to be undone. But if it's fixing problems in the meantime, it seems relatively harmless, given that it's updating the tree node using the appropriate method for the event that caused the tree node to change initially. However, I see that there are several other calls to selectCurrentTreeNode in other parts of the file, and I'm not sure if these might still have bugs related to ranges. If they do, those bugs might be harder to fix.

In any case, bottom line: it seems unlikely to me that this fix makes things worse or causes new breakages, but I'm not sure if it fixes every problem related to the underlying problem. I'd love input from @edsilv if he has any memory of the context of this, but I'd be reasonably comfortable with approving and merging this fix if you need it resolved before Ed has a chance to respond. Feel free to follow up here if you need further action from my end.

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

Successfully merging this pull request may close these issues.

None yet

2 participants