0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 15:51:37 -05:00

Improved incremental selection

This commit is contained in:
alonso.torres 2022-02-04 09:51:26 +01:00
parent 72c2a213b4
commit 67c6a042a0

View file

@ -88,7 +88,9 @@
(rx/merge (rx/merge
(->> selrect-stream (rx/map update-selrect)) (->> selrect-stream (rx/map update-selrect))
(->> selrect-stream (->> selrect-stream
(rx/debounce 50) (rx/buffer-time 100)
(rx/map #(last %))
(rx/dedupe)
(rx/map #(select-shapes-by-current-selrect preserve?)))) (rx/map #(select-shapes-by-current-selrect preserve?))))
(rx/of (update-selrect nil)))))))) (rx/of (update-selrect nil))))))))