mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 00:58:26 -05:00
🐛 Fix selection hover
This commit is contained in:
parent
ad58c97cbd
commit
f7e5cb4bb2
1 changed files with 6 additions and 6 deletions
|
@ -192,12 +192,12 @@
|
|||
overlaps?
|
||||
(fn [shape]
|
||||
(if (and (false? using-selrect?) (empty? (:fills shape)))
|
||||
(do
|
||||
(case (:type shape)
|
||||
;; If the shape has no fills the overlap depends on the stroke
|
||||
:rect (and (overlaps-outer-shape? shape) (not (overlaps-inner-shape? shape)))
|
||||
:circle (and (overlaps-outer-shape? shape) (not (overlaps-inner-shape? shape)))
|
||||
:path (overlaps-path? shape)))
|
||||
(case (:type shape)
|
||||
;; If the shape has no fills the overlap depends on the stroke
|
||||
:rect (and (overlaps-outer-shape? shape) (not (overlaps-inner-shape? shape)))
|
||||
:circle (and (overlaps-outer-shape? shape) (not (overlaps-inner-shape? shape)))
|
||||
:path (overlaps-path? shape)
|
||||
(gsh/overlaps? shape rect))
|
||||
(gsh/overlaps? shape rect)))
|
||||
|
||||
overlaps-parent?
|
||||
|
|
Loading…
Add table
Reference in a new issue