From cc046555a39878e1d5185421c6f8a5afac14f480 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 20 Apr 2022 10:40:07 +0200 Subject: [PATCH] :bug: Fix problem with zoom with wheel in Firefox --- frontend/src/app/main/ui/workspace/viewport/actions.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/viewport/actions.cljs b/frontend/src/app/main/ui/workspace/viewport/actions.cljs index ce94e1dfc..0a77243ce 100644 --- a/frontend/src/app/main/ui/workspace/viewport/actions.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/actions.cljs @@ -393,7 +393,7 @@ (* unit) (/ zoom))] (if (or ctrl? mod?) - (let [delta (* -1 (+ (.-deltaY ^js event) (.-deltaX ^js event))) + (let [delta (* -1 (+ delta-y delta-x)) scale (-> (+ 1 (/ delta 100)) (mth/clamp 0.77 1.3))] (st/emit! (dw/set-zoom pt scale))) (if (and (not (cfg/check-platform? :macos))