From 67c6a042a0900d87e6bcd22f60c80f7b22cba17f Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 4 Feb 2022 09:51:26 +0100 Subject: [PATCH] :sparkles: Improved incremental selection --- frontend/src/app/main/data/workspace/selection.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/selection.cljs b/frontend/src/app/main/data/workspace/selection.cljs index f6bd9a518..46b554a22 100644 --- a/frontend/src/app/main/data/workspace/selection.cljs +++ b/frontend/src/app/main/data/workspace/selection.cljs @@ -88,7 +88,9 @@ (rx/merge (->> selrect-stream (rx/map update-selrect)) (->> selrect-stream - (rx/debounce 50) + (rx/buffer-time 100) + (rx/map #(last %)) + (rx/dedupe) (rx/map #(select-shapes-by-current-selrect preserve?)))) (rx/of (update-selrect nil))))))))