From 5c67cd0a4bca22885b63a6c6c770c60807199176 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 9 Apr 2026 16:02:33 +0200 Subject: [PATCH] :bug: Avoid unnecesary text editor pointer movements --- frontend/src/app/main/ui/workspace/viewport/actions.cljs | 3 ++- 1 file changed, 2 insertions(+), 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 e9b07b77b6..f0711768b2 100644 --- a/frontend/src/app/main/ui/workspace/viewport/actions.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/actions.cljs @@ -369,7 +369,8 @@ ;; in the future (when we handle the UI in the render) should be better to ;; have a "wasm.api/pointer-move" function that works as an entry point for ;; all the pointer-move events. - (wasm.api/text-editor-pointer-move (.-x off-pt) (.-y off-pt)) + (when (wasm.api/text-editor-has-focus?) + (wasm.api/text-editor-pointer-move (.-x off-pt) (.-y off-pt))) (rx/push! move-stream pt) (reset! last-position raw-pt)