0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-11 01:28:30 -05:00

🐛 Fix problem with multiplayer cursors

This commit is contained in:
alonso.torres 2024-02-01 16:58:06 +01:00
parent 7fa47d68a8
commit 3a260825b9

View file

@ -83,6 +83,7 @@
;; position changes. ;; position changes.
(->> stream (->> stream
(rx/filter mse/pointer-event?) (rx/filter mse/pointer-event?)
(rx/filter #(= :viewport (mse/get-pointer-source %)))
(rx/pipe (rxs/throttle 100)) (rx/pipe (rxs/throttle 100))
(rx/map #(handle-pointer-send file-id (:pt %))))) (rx/map #(handle-pointer-send file-id (:pt %)))))