From b07ec63f71ad96d92f0f7b562dd2804926fd9465 Mon Sep 17 00:00:00 2001 From: mdelez <60604010+mdelez@users.noreply.github.com> Date: Mon, 13 Sep 2021 16:01:12 +0200 Subject: [PATCH] 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 --- .../representation/still-image/still-image.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/workspace/resource/representation/still-image/still-image.component.ts b/src/app/workspace/resource/representation/still-image/still-image.component.ts index 863c0c2b8e..3055b13185 100644 --- a/src/app/workspace/resource/representation/still-image/still-image.component.ts +++ b/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');