aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/services
diff options
context:
space:
mode:
authorpacien2020-04-27 22:26:56 +0200
committerpacien2020-04-27 22:26:56 +0200
commitbda84785d3d04c0d1d471a1cf9c38363541b64a8 (patch)
treebba150e26c31903d956aaa7ff4829d45c3ba58bc /viewer/src/services
parent058d6b945c06b6daa2824ac837fc6ec003bc9fa6 (diff)
downloadldgallery-bda84785d3d04c0d1d471a1cf9c38363541b64a8.tar.gz
viewer/LdZoom: set image scale on init
To prevent some init glitch from happening.
Diffstat (limited to 'viewer/src/services')
-rw-r--r--viewer/src/services/ldzoom.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/viewer/src/services/ldzoom.ts b/viewer/src/services/ldzoom.ts
index a494211..50f006e 100644
--- a/viewer/src/services/ldzoom.ts
+++ b/viewer/src/services/ldzoom.ts
@@ -60,6 +60,8 @@ export default class LdZoom {
60 const pinchListener = new Hammer(this.containerElement); 60 const pinchListener = new Hammer(this.containerElement);
61 pinchListener.get('pinch').set({enable: true}); 61 pinchListener.get('pinch').set({enable: true});
62 this.installPinchHandler(pinchListener); 62 this.installPinchHandler(pinchListener);
63
64 this.setImageScale(this.scaleFactor);
63 } 65 }
64 66
65 private installPinchHandler(pinchListener: HammerManager) { 67 private installPinchHandler(pinchListener: HammerManager) {