mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
🐛 Fixed problem with picker delay
This commit is contained in:
parent
3a135c626d
commit
a70e4eeb01
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@
|
||||||
(let [canvas-node (mf/ref-val canvas-ref)
|
(let [canvas-node (mf/ref-val canvas-ref)
|
||||||
canvas-context (.getContext canvas-node "2d")
|
canvas-context (.getContext canvas-node "2d")
|
||||||
svg-node (mf/ref-val svg-ref)]
|
svg-node (mf/ref-val svg-ref)]
|
||||||
(timers/schedule
|
(timers/schedule 100
|
||||||
#(let [xml (.serializeToString (js/XMLSerializer.) svg-node)
|
#(let [xml (.serializeToString (js/XMLSerializer.) svg-node)
|
||||||
content (str "data:image/svg+xml;base64," (js/btoa xml))
|
content (str "data:image/svg+xml;base64," (js/btoa xml))
|
||||||
img (js/Image.)]
|
img (js/Image.)]
|
||||||
|
|
Loading…
Reference in a new issue