mirror of
https://github.com/penpot/penpot.git
synced 2026-03-05 17:51:17 +00:00
🐛 Fix selection hover
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user