mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 10:36:10 +02:00
Merge pull request #3402 from penpot/superalex-bugfixing-16
🐛 Alex bugfixing
This commit is contained in:
commit
2d57523e00
2 changed files with 2 additions and 7 deletions
|
@ -245,14 +245,14 @@
|
||||||
|
|
||||||
:dissolve
|
:dissolve
|
||||||
(do (dom/animate! orig-viewport
|
(do (dom/animate! orig-viewport
|
||||||
[#js {:opacity "100"}
|
[#js {:opacity "100%"}
|
||||||
#js {:opacity "0"}]
|
#js {:opacity "0"}]
|
||||||
#js {:duration (:duration animation)
|
#js {:duration (:duration animation)
|
||||||
:easing (name (:easing animation))}
|
:easing (name (:easing animation))}
|
||||||
#(st/emit! (dv/complete-animation)))
|
#(st/emit! (dv/complete-animation)))
|
||||||
(dom/animate! current-viewport
|
(dom/animate! current-viewport
|
||||||
[#js {:opacity "0"}
|
[#js {:opacity "0"}
|
||||||
#js {:opacity "100"}]
|
#js {:opacity "100%"}]
|
||||||
#js {:duration (:duration animation)
|
#js {:duration (:duration animation)
|
||||||
:easing (name (:easing animation))}))
|
:easing (name (:easing animation))}))
|
||||||
|
|
||||||
|
|
|
@ -199,9 +199,6 @@
|
||||||
ext-delay-ref (mf/use-ref nil)
|
ext-delay-ref (mf/use-ref nil)
|
||||||
ext-duration-ref (mf/use-ref nil)
|
ext-duration-ref (mf/use-ref nil)
|
||||||
|
|
||||||
select-text
|
|
||||||
(fn [ref] (fn [_] (dom/select-text! (mf/ref-val ref))))
|
|
||||||
|
|
||||||
change-event-type
|
change-event-type
|
||||||
(fn [event]
|
(fn [event]
|
||||||
(let [value (-> event dom/get-target dom/get-value d/read-string)]
|
(let [value (-> event dom/get-target dom/get-value d/read-string)]
|
||||||
|
@ -336,7 +333,6 @@
|
||||||
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-delay")]
|
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-delay")]
|
||||||
[:div.input-element {:title (tr "workspace.options.interaction-ms")}
|
[:div.input-element {:title (tr "workspace.options.interaction-ms")}
|
||||||
[:> numeric-input {:ref ext-delay-ref
|
[:> numeric-input {:ref ext-delay-ref
|
||||||
:on-focus (select-text ext-delay-ref)
|
|
||||||
:on-change change-delay
|
:on-change change-delay
|
||||||
:value (:delay interaction)
|
:value (:delay interaction)
|
||||||
:title (tr "workspace.options.interaction-ms")}]
|
:title (tr "workspace.options.interaction-ms")}]
|
||||||
|
@ -523,7 +519,6 @@
|
||||||
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-duration")]
|
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-duration")]
|
||||||
[:div.input-element {:title (tr "workspace.options.interaction-ms")}
|
[:div.input-element {:title (tr "workspace.options.interaction-ms")}
|
||||||
[:> numeric-input {:ref ext-duration-ref
|
[:> numeric-input {:ref ext-duration-ref
|
||||||
:on-focus (select-text ext-duration-ref)
|
|
||||||
:on-change change-duration
|
:on-change change-duration
|
||||||
:value (-> interaction :animation :duration)
|
:value (-> interaction :animation :duration)
|
||||||
:title (tr "workspace.options.interaction-ms")}]
|
:title (tr "workspace.options.interaction-ms")}]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue