From b03df6422fc428ca86b92158310c32ff50b02541 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 18 Nov 2024 10:06:27 +0100 Subject: [PATCH] :bug: Fix streaming of panning events --- frontend/src/app/main/data/workspace/viewport.cljs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/app/main/data/workspace/viewport.cljs b/frontend/src/app/main/data/workspace/viewport.cljs index 0637eb246..12c1f407c 100644 --- a/frontend/src/app/main/data/workspace/viewport.cljs +++ b/frontend/src/app/main/data/workspace/viewport.cljs @@ -157,6 +157,8 @@ (rx/filter mse/pointer-event?) (rx/filter #(= :delta (:source %))) (rx/take-until stopper) + ;; Some events are executed in synchronous way like panning with backspace pressed + (rx/observe-on :af) (rx/map (fn [event] (let [delta (dm/get-prop event :pt)] (update-viewport-position {:x #(- % (/ (:x delta) zoom))