0
Fork 0
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:
Alejandro Alonso 2023-09-13 12:35:11 +02:00
parent ad58c97cbd
commit f7e5cb4bb2

View file

@ -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?