Skip to content
Snippets Groups Projects
Commit 8eddcfe1 authored by Jack Reed's avatar Jack Reed Committed by Chris Beer
Browse files

Reduce the amount of tileProperty refreshing we are doing

parent 23a7de50
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ export class OpenSeadragonViewer extends Component {
) {
this.viewer.close();
this.addAllImageSources();
} else if (canvasWorld.layers !== prevProps.canvasWorld.layers) {
} else if (!isEqual(canvasWorld.layers, prevProps.canvasWorld.layers)) {
this.refreshTileProperties();
} else if (viewer && !this.osdUpdating) {
const { viewport } = this.viewer;
......@@ -211,6 +211,7 @@ export class OpenSeadragonViewer extends Component {
).then(() => {
if (infoResponses[0] || nonTiledImages[0]) {
this.zoomToWorld();
this.refreshTileProperties();
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment