mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 18:56:38 +02:00
🐛 Fix problem with interactions over frames
This commit is contained in:
parent
dd69762b31
commit
dc7d279e9d
1 changed files with 1 additions and 3 deletions
|
@ -265,8 +265,7 @@
|
||||||
|
|
||||||
(mf/defc interaction
|
(mf/defc interaction
|
||||||
[{:keys [shape interactions interactions-show?]}]
|
[{:keys [shape interactions interactions-show?]}]
|
||||||
(let [{:keys [x y width height]} (:selrect shape)
|
(let [{:keys [x y width height]} (:selrect shape)]
|
||||||
frame? (= :frame (:type shape))]
|
|
||||||
(when-not (empty? interactions)
|
(when-not (empty? interactions)
|
||||||
[:rect {:x (- x 1)
|
[:rect {:x (- x 1)
|
||||||
:y (- y 1)
|
:y (- y 1)
|
||||||
|
@ -276,7 +275,6 @@
|
||||||
:stroke "var(--color-accent-tertiary)"
|
:stroke "var(--color-accent-tertiary)"
|
||||||
:stroke-width (if interactions-show? 1 0)
|
:stroke-width (if interactions-show? 1 0)
|
||||||
:fill-opacity (if interactions-show? 0.2 0)
|
:fill-opacity (if interactions-show? 0.2 0)
|
||||||
:style {:pointer-events (when frame? "none")}
|
|
||||||
:transform (gsh/transform-str shape)}])))
|
:transform (gsh/transform-str shape)}])))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue