0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

🐛 Fixed problem with picker delay

This commit is contained in:
alonso.torres 2020-09-16 10:52:57 +02:00
parent 3a135c626d
commit a70e4eeb01

View file

@ -230,7 +230,7 @@
(let [canvas-node (mf/ref-val canvas-ref)
canvas-context (.getContext canvas-node "2d")
svg-node (mf/ref-val svg-ref)]
(timers/schedule
(timers/schedule 100
#(let [xml (.serializeToString (js/XMLSerializer.) svg-node)
content (str "data:image/svg+xml;base64," (js/btoa xml))
img (js/Image.)]