0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 06:32:38 -05:00

🐛 Fixed problem with timers

This commit is contained in:
alonso.torres 2021-01-29 09:51:45 +01:00
parent 3faa5b4a11
commit 2374cf41f8

View file

@ -43,7 +43,7 @@
(def ^:private cancel-idle-callback #(js/cancelIdleCallback %)))
(do
(def ^:private request-idle-callback #(js/setTimeout % 100))
(def ^:private cancel-idle-callback #(js/cancelTimeout %))))
(def ^:private cancel-idle-callback #(js/clearTimeout %))))
(defn schedule-on-idle
[func]