mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 06:31:38 +02:00
⚡ General performance improvements on workspace.
This commit is contained in:
parent
00168d392b
commit
2ac42d15b6
10 changed files with 111 additions and 13 deletions
|
@ -32,3 +32,12 @@
|
|||
(reify rx/IDisposable
|
||||
(-dispose [_]
|
||||
(js/cancelIdleCallback sem)))))
|
||||
|
||||
(defn raf
|
||||
[f]
|
||||
(js/window.requestAnimationFrame f))
|
||||
|
||||
(defn idle-then-raf
|
||||
[f]
|
||||
(schedule-on-idle #(raf f)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue