mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 18:48:37 -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?
|
overlaps?
|
||||||
(fn [shape]
|
(fn [shape]
|
||||||
(if (and (false? using-selrect?) (empty? (:fills shape)))
|
(if (and (false? using-selrect?) (empty? (:fills shape)))
|
||||||
(do
|
|
||||||
(case (:type shape)
|
(case (:type shape)
|
||||||
;; If the shape has no fills the overlap depends on the stroke
|
;; If the shape has no fills the overlap depends on the stroke
|
||||||
:rect (and (overlaps-outer-shape? shape) (not (overlaps-inner-shape? shape)))
|
:rect (and (overlaps-outer-shape? shape) (not (overlaps-inner-shape? shape)))
|
||||||
:circle (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)))
|
:path (overlaps-path? shape)
|
||||||
|
(gsh/overlaps? shape rect))
|
||||||
(gsh/overlaps? shape rect)))
|
(gsh/overlaps? shape rect)))
|
||||||
|
|
||||||
overlaps-parent?
|
overlaps-parent?
|
||||||
|
|
Loading…
Add table
Reference in a new issue