mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -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;
|
-webkit-appearance: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type=number] {
|
||||||
|
-moz-appearance: textfield;
|
||||||
|
}
|
||||||
|
|
|
@ -311,6 +311,7 @@
|
||||||
|
|
||||||
on-drop
|
on-drop
|
||||||
(fn [event]
|
(fn [event]
|
||||||
|
(dom/prevent-default event)
|
||||||
(let [shape (dom/get-data-transfer event)
|
(let [shape (dom/get-data-transfer event)
|
||||||
point (gpt/point (.-clientX event) (.-clientY event))
|
point (gpt/point (.-clientX event) (.-clientY event))
|
||||||
viewport-coord (translate-point-to-viewport point)
|
viewport-coord (translate-point-to-viewport point)
|
||||||
|
|
|
@ -165,11 +165,11 @@
|
||||||
(defn set-data-transfer
|
(defn set-data-transfer
|
||||||
[event data]
|
[event data]
|
||||||
(let [data-string (ts/encode data)]
|
(let [data-string (ts/encode data)]
|
||||||
(-> event .-dataTransfer (.setData "text" data-string))))
|
(-> event .-dataTransfer (.setData "text/plain" data-string))))
|
||||||
|
|
||||||
(defn get-data-transfer
|
(defn get-data-transfer
|
||||||
[event]
|
[event]
|
||||||
(let [data-string (-> event .-dataTransfer (.getData "text"))]
|
(let [data-string (-> event .-dataTransfer (.getData "text/plain"))]
|
||||||
(ts/decode data-string)))
|
(ts/decode data-string)))
|
||||||
|
|
||||||
(defn fullscreen?
|
(defn fullscreen?
|
||||||
|
|
Loading…
Add table
Reference in a new issue