Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Feb 11, 2017
1 parent e55e9d9 commit 792196f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,6 @@ class SeadragonCenterPanel extends CenterPanel {
updateBounds(): void {

const settings: ISettings = this.extension.getSettings();
const hasSearchResults: boolean = !!this.getSearchResultsForCurrentImages().length;

// if this is the first load and there are initial bounds, fit to those.
if (this.isFirstLoad) {
Expand All @@ -573,7 +572,7 @@ class SeadragonCenterPanel extends CenterPanel {
this.currentBounds = this.initialBounds;
this.fitToBounds(this.currentBounds);
}
} else if (settings.preserveViewport) { // if this isn't the first load, preserveViewport is enabled, and there are no search results to zoom to, fit to the current bounds.
} else if (settings.preserveViewport) { // if this isn't the first load and preserveViewport is enabled, fit to the current bounds.
this.fitToBounds(this.currentBounds);
} else {
this.goHome();
Expand Down

0 comments on commit 792196f

Please sign in to comment.