UniversalViewer / universalviewer

A community-developed open source project on a mission to help you share your πŸ“šπŸ“œπŸ“°πŸ“½οΈπŸ“»πŸ—Ώ with the 🌎

Home Page:http://universalviewer.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overlapping ranges make some titles in de index tab not "clickable"

nicolasfranck opened this issue Β· comments

UV version:

 universalviewer@4.0.25

I'm submitting a:

  • bug report => please fork one of these codesandbox examples with a repro of your issue and include a link to it below

Current behavior:

When I provide a manifest with overlapping ranges (two ranges have one or more of the same canvases),
one of the titles do not react "properly", i.e. when clicked the title does not become
blue and the first canvas is not triggered.

P.S. When navigating through the image list, the right range titles are selected, so that part
works perfectly.

Expected behavior:

Overlapping ranges should work

P.S. it works in https://universalviewer.io/examples/?manifest=http%3A%2F%2Fwellcomelibrary.org%2Fiiif%2Fb19974760-0%2Fmanifest&locale=en-GB#?c=&m=&s=&cv=3&manifest=https%3A%2F%2Fadore.ugent.be%2FIIIF%2Fmanifests%2Frange-test&xywh=0%2C-1599%2C10937%2C10415 which is probably based on an older version

Steps to reproduce:

I made it work as follows:

I noticed that the method selectCurrentTreeNode tries to determine the right method to call (selectCurrentTreeNodeByCanvas or selectCurrentTreeNodeByRange) based on the used
extension. But for the openseadragon extension it always selects selectCurrentTreeNodeByCanvas

If alright I'll prepare a PR