From b86d96f2ed5dd4f17b047e8aba22512400484bb3 Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 26 Apr 2020 06:02:33 +0200 Subject: viewer/LdPicture: implement mousewheel zoom GitHub: closes #153 --- viewer/package-lock.json | 5 ++ viewer/package.json | 1 + viewer/src/components/LdPicture.vue | 61 ++++++++++++------------ viewer/src/services/ldzoom.ts | 92 +++++++++++++++++++++++++++++++++++++ 4 files changed, 129 insertions(+), 30 deletions(-) create mode 100644 viewer/src/services/ldzoom.ts (limited to 'viewer') diff --git a/viewer/package-lock.json b/viewer/package-lock.json index 228788d..1e1fdda 100644 --- a/viewer/package-lock.json +++ b/viewer/package-lock.json @@ -10464,6 +10464,11 @@ "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", "dev": true }, + "resize-observer-polyfill": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", + "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==" + }, "resolve": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.14.1.tgz", diff --git a/viewer/package.json b/viewer/package.json index 40a91ba..8f7de83 100644 --- a/viewer/package.json +++ b/viewer/package.json @@ -15,6 +15,7 @@ "@fortawesome/vue-fontawesome": "^0.1.9", "buefy": "^0.8.15", "core-js": "^3.6.4", + "resize-observer-polyfill": "^1.5.1", "v-lazy-image": "^1.4.0", "vue": "^2.6.11", "vue-class-component": "^7.2.3", diff --git a/viewer/src/components/LdPicture.vue b/viewer/src/components/LdPicture.vue index 3170c81..622165d 100644 --- a/viewer/src/components/LdPicture.vue +++ b/viewer/src/components/LdPicture.vue @@ -19,31 +19,37 @@