mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 12:08:29 +02:00
🐛 Fix request render after pending calls have finished on set-objects
This commit is contained in:
parent
dadeda4476
commit
ecd3245612
1 changed files with 6 additions and 3 deletions
|
@ -783,8 +783,13 @@
|
||||||
(rx/tap (fn [_] (request-render "set-objects")))
|
(rx/tap (fn [_] (request-render "set-objects")))
|
||||||
(rx/reduce conj [])
|
(rx/reduce conj [])
|
||||||
(rx/subs! (fn [_]
|
(rx/subs! (fn [_]
|
||||||
|
(clear-drawing-cache)
|
||||||
|
(request-render "pending-finished")
|
||||||
(.dispatchEvent ^js js/document event))))
|
(.dispatchEvent ^js js/document event))))
|
||||||
(.dispatchEvent ^js js/document event))))
|
(do
|
||||||
|
(clear-drawing-cache)
|
||||||
|
(request-render "pending-finished")
|
||||||
|
(.dispatchEvent ^js js/document event)))))
|
||||||
|
|
||||||
(defn process-object
|
(defn process-object
|
||||||
[shape]
|
[shape]
|
||||||
|
@ -804,8 +809,6 @@
|
||||||
(recur (inc index) (into pending pending')))
|
(recur (inc index) (into pending pending')))
|
||||||
pending))]
|
pending))]
|
||||||
(perf/end-measure "set-objects")
|
(perf/end-measure "set-objects")
|
||||||
(clear-drawing-cache)
|
|
||||||
(request-render "set-objects")
|
|
||||||
(process-pending pending)))
|
(process-pending pending)))
|
||||||
|
|
||||||
(defn clear-focus-mode
|
(defn clear-focus-mode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue