From fcb115f42d33db2be7a4d428ec53d65d6050320b Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Thu, 25 Mar 2021 19:37:54 +0000 Subject: [PATCH] fix: mouse wheel zoom on previewer --- frontend/src/components/files/ExtendedImage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/files/ExtendedImage.vue b/frontend/src/components/files/ExtendedImage.vue index b0be0149..742523a6 100644 --- a/frontend/src/components/files/ExtendedImage.vue +++ b/frontend/src/components/files/ExtendedImage.vue @@ -260,7 +260,7 @@ export default { } }, wheelMove(event) { - this.scale += (event.wheelDeltaY / 100) * this.zoomStep; + this.scale += -Math.sign(event.deltaY) * this.zoomStep; this.setZoom(); }, setZoom() {