mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
🐛 Remove after delay event for not-frame shapes
This commit is contained in:
parent
5e6ce26742
commit
d51338e754
2 changed files with 9 additions and 8 deletions
|
@ -176,7 +176,7 @@
|
||||||
(contains? event-types event-type))
|
(contains? event-types event-type))
|
||||||
|
|
||||||
(dm/assert!
|
(dm/assert!
|
||||||
"The `:after-delay` event type incompatible with frame shapes"
|
"The `:after-delay` event type incompatible with not frame shapes"
|
||||||
(or (not= event-type :after-delay)
|
(or (not= event-type :after-delay)
|
||||||
(cfh/frame-shape? shape)))
|
(cfh/frame-shape? shape)))
|
||||||
|
|
||||||
|
|
|
@ -357,13 +357,14 @@
|
||||||
(update-interaction index #(ctsi/set-offset-effect % value)))))
|
(update-interaction index #(ctsi/set-offset-effect % value)))))
|
||||||
|
|
||||||
|
|
||||||
event-type-options [{:value :click :label (tr "workspace.options.interaction-on-click")}
|
event-type-options (-> [{:value :click :label (tr "workspace.options.interaction-on-click")}
|
||||||
;; TODO: need more UX research
|
;; TODO: need more UX research
|
||||||
;; :mouse-over (tr "workspace.options.interaction-while-hovering")
|
;; :mouse-over (tr "workspace.options.interaction-while-hovering")
|
||||||
;; :mouse-press (tr "workspace.options.interaction-while-pressing")
|
;; :mouse-press (tr "workspace.options.interaction-while-pressing")
|
||||||
{:value :mouse-enter :label (tr "workspace.options.interaction-mouse-enter")}
|
{:value :mouse-enter :label (tr "workspace.options.interaction-mouse-enter")}
|
||||||
{:value :mouse-leave :label (tr "workspace.options.interaction-mouse-leave")}
|
{:value :mouse-leave :label (tr "workspace.options.interaction-mouse-leave")}]
|
||||||
{:value :after-delay :label (tr "workspace.options.interaction-after-delay")}]
|
(cond-> (cfh/frame-shape? shape)
|
||||||
|
(conj {:value :after-delay :label (tr "workspace.options.interaction-after-delay")})))
|
||||||
|
|
||||||
action-type-options [{:value :navigate :label (tr "workspace.options.interaction-navigate-to")}
|
action-type-options [{:value :navigate :label (tr "workspace.options.interaction-navigate-to")}
|
||||||
{:value :open-overlay :label (tr "workspace.options.interaction-open-overlay")}
|
{:value :open-overlay :label (tr "workspace.options.interaction-open-overlay")}
|
||||||
|
|
Loading…
Add table
Reference in a new issue