mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
🐛 Fixed Firefox behaviour
This commit is contained in:
parent
8077f2704e
commit
ccbe50b042
3 changed files with 7 additions and 2 deletions
|
@ -221,3 +221,7 @@ input[type=number]::-webkit-inner-spin-button,
|
|||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
input[type=number] {
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
|
|
@ -311,6 +311,7 @@
|
|||
|
||||
on-drop
|
||||
(fn [event]
|
||||
(dom/prevent-default event)
|
||||
(let [shape (dom/get-data-transfer event)
|
||||
point (gpt/point (.-clientX event) (.-clientY event))
|
||||
viewport-coord (translate-point-to-viewport point)
|
||||
|
|
|
@ -165,11 +165,11 @@
|
|||
(defn set-data-transfer
|
||||
[event data]
|
||||
(let [data-string (ts/encode data)]
|
||||
(-> event .-dataTransfer (.setData "text" data-string))))
|
||||
(-> event .-dataTransfer (.setData "text/plain" data-string))))
|
||||
|
||||
(defn get-data-transfer
|
||||
[event]
|
||||
(let [data-string (-> event .-dataTransfer (.getData "text"))]
|
||||
(let [data-string (-> event .-dataTransfer (.getData "text/plain"))]
|
||||
(ts/decode data-string)))
|
||||
|
||||
(defn fullscreen?
|
||||
|
|
Loading…
Reference in a new issue