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

Force redraw to destroy previous tiled image. #204

Merged
merged 1 commit into from
May 1, 2024

Conversation

mathewjordan
Copy link
Member

@mathewjordan mathewjordan commented May 1, 2024

This addresses issue #203 raised by @wykhuh. In some instances when navigating canvases of a manfiest, the expected IIIF tiled images is not drawn to the canvas and the previous item is retained. The actual occurance is a collision on the index of the canvas where the IIIF tiled image is strangely drawn under the previous tiled image that was somehow retained. In addition to the redraw, we now also update a timing issue where the osdUri is not reset unless the openSeadragon instance exists.

To resolve, we are now forcing a redraw prior to the drawing of the new image.

This also updates the openseadragon dependency as previous IIIF tile size issues have now been resolved in the recent release 4.1.1.

@mathewjordan mathewjordan linked an issue May 1, 2024 that may be closed by this pull request
1 task
@mathewjordan mathewjordan self-assigned this May 1, 2024
@mathewjordan mathewjordan force-pushed the 203-update-active-canvas-bug branch from 4fe433a to 442fd5a Compare May 1, 2024 03:49
@mathewjordan mathewjordan marked this pull request as ready for review May 1, 2024 03:55
Copy link
Collaborator

@adamjarling adamjarling left a comment

Choose a reason for hiding this comment

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

Good catch on the bug.

@@ -83,7 +83,7 @@
"flexsearch": "^0.7.43",
"hls.js": "^1.5.3",
"node-webvtt": "^1.9.4",
"openseadragon": "^2.4.2",
"openseadragon": "^4.1.1",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice

@mathewjordan mathewjordan merged commit 35a469a into main May 1, 2024
1 check passed
@mathewjordan mathewjordan deleted the 203-update-active-canvas-bug branch May 1, 2024 14:25
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.

Clover doesn't always toggle between canvases on thumbnail click
2 participants