0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 23:31:21 -05:00

🐛 Fix problem with interactions over frames

This commit is contained in:
alonso.torres 2024-03-15 15:33:51 +01:00
parent dd69762b31
commit dc7d279e9d

View file

@ -265,8 +265,7 @@
(mf/defc interaction
[{:keys [shape interactions interactions-show?]}]
(let [{:keys [x y width height]} (:selrect shape)
frame? (= :frame (:type shape))]
(let [{:keys [x y width height]} (:selrect shape)]
(when-not (empty? interactions)
[:rect {:x (- x 1)
:y (- y 1)
@ -276,7 +275,6 @@
:stroke "var(--color-accent-tertiary)"
:stroke-width (if interactions-show? 1 0)
:fill-opacity (if interactions-show? 0.2 0)
:style {:pointer-events (when frame? "none")}
:transform (gsh/transform-str shape)}])))