0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

Merge pull request #2578 from penpot/superalex-interaction-open-url-after-delay-duplicate-tab

🐛 Interaction for open url after delay duplicates tab
This commit is contained in:
Andrey Antukh 2022-11-22 11:45:38 +01:00 committed by GitHub
commit d886889334
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,14 @@
;; Retrieve frames again with correct modifier
frame (get objects-not-fixed (:id frame))
base (get objects-not-fixed (:id base))]
base (get objects-not-fixed (:id base))
non-delay-interactions (->> (:interactions frame)
(filterv #(not= (:event-type %) :after-delay)))
fixed-frame (-> frame
(dissoc :fills)
(assoc :interactions non-delay-interactions))]
[:& (mf/provider shapes/base-frame-ctx) {:value base}
[:& (mf/provider shapes/frame-offset-ctx) {:value offset}
@ -106,7 +113,7 @@
:fill "none"
:style {:width (:width size)
:height (:height size)}}
[:& wrapper-fixed {:shape (dissoc frame :fills) :view-box vbox}]]]]))
[:& wrapper-fixed {:shape fixed-frame :view-box vbox}]]]]))
(mf/defc viewport
{::mf/wrap [mf/memo]