0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

Merge pull request #3402 from penpot/superalex-bugfixing-16

🐛 Alex bugfixing
This commit is contained in:
Pablo Alba 2023-07-11 08:10:56 +02:00 committed by GitHub
commit 2d57523e00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View file

@ -245,14 +245,14 @@
:dissolve
(do (dom/animate! orig-viewport
[#js {:opacity "100"}
[#js {:opacity "100%"}
#js {:opacity "0"}]
#js {:duration (:duration animation)
:easing (name (:easing animation))}
#(st/emit! (dv/complete-animation)))
(dom/animate! current-viewport
[#js {:opacity "0"}
#js {:opacity "100"}]
#js {:opacity "100%"}]
#js {:duration (:duration animation)
:easing (name (:easing animation))}))

View file

@ -199,9 +199,6 @@
ext-delay-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
(fn [event]
(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")]
[:div.input-element {:title (tr "workspace.options.interaction-ms")}
[:> numeric-input {:ref ext-delay-ref
:on-focus (select-text ext-delay-ref)
:on-change change-delay
:value (:delay interaction)
:title (tr "workspace.options.interaction-ms")}]
@ -523,7 +519,6 @@
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-duration")]
[:div.input-element {:title (tr "workspace.options.interaction-ms")}
[:> numeric-input {:ref ext-duration-ref
:on-focus (select-text ext-duration-ref)
:on-change change-duration
:value (-> interaction :animation :duration)
:title (tr "workspace.options.interaction-ms")}]