Skip to content

Commit

Permalink
fix(still-image-viewer): fix zoom buttons (DSP-1798) (#533)
Browse files Browse the repository at this point in the history
* fix(still-image-viewer): fix zoom buttons

* refactor(still-image): moves setting to main settings struct
  • Loading branch information
mdelez committed Sep 13, 2021
1 parent 5783d27 commit b07ec63
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -250,13 +250,12 @@ export class StillImageComponent implements OnChanges, OnDestroy {
navigatorLeft: 'calc(100% - 160px)',
navigatorHeight: '120px',
navigatorWidth: '120px',
gestureSettingsMouse: {
clickToZoom: false // do not zoom in on click
}
};
this._viewer = new OpenSeadragon.Viewer(osdOptions);

// do not zoom in on click
// https://github.com/openseadragon/openseadragon/issues/1115#issuecomment-275725918
this._viewer.zoomPerClick = 1;

this._viewer.addHandler('full-screen', (args) => {
if (args.fullScreen) {
viewerContainer.classList.add('fullscreen');
Expand Down

0 comments on commit b07ec63

Please sign in to comment.