mirror of
https://github.com/penpot/penpot.git
synced 2025-03-18 10:41:29 -05:00
🐛 Fix problem when upload image after zoom
This commit is contained in:
parent
0756de25f8
commit
92e07c3b54
1 changed files with 1 additions and 0 deletions
|
@ -385,6 +385,7 @@
|
|||
(defn on-drop [file viewport-ref zoom]
|
||||
(let [on-image-uploaded (on-image-uploaded)]
|
||||
(mf/use-callback
|
||||
(mf/deps zoom)
|
||||
(fn [event]
|
||||
(dom/prevent-default event)
|
||||
(let [point (gpt/point (.-clientX event) (.-clientY event))
|
||||
|
|
Loading…
Add table
Reference in a new issue