Skip to content
Permalink
Browse files
fix(still-image-viewer): fix zoom buttons (DSP-1798) (#533)
* 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 b07ec63f71ad96d92f0f7b562dd2804926fd9465
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/app/workspace/resource/representation/still-image/still-image.component.ts
@@ -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');

0 comments on commit b07ec63

Please sign in to comment.