File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/renderer/tool/transform Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 67
67
" to scale in position." ]])
68
68
69
69
(defn hovered?
70
- [{:keys [active-document] :as db} el intersecting?]
71
- (let [hovered-keys (-> db :documents active-document :hovered-keys )]
72
- (and (empty? (set/intersection (element.h/ancestor-keys db el) hovered-keys))
73
- ((if intersecting? bounds/intersected? bounds/contained?)
74
- (:bounds el)
75
- (let [{{:keys [x y width height]} :attrs } (element.h/get-temp db)]
76
- [x y (+ x width) (+ y height)])))))
70
+ [db el intersecting?]
71
+ (let [{{:keys [x y width height]} :attrs } (element.h/get-temp db)
72
+ selection-bounds [x y (+ x width) (+ y height)]]
73
+ (if intersecting?
74
+ (bounds/intersected? (:bounds el) selection-bounds)
75
+ (bounds/contained? (:bounds el) selection-bounds))))
77
76
78
77
(defn reduce-by-area
79
78
[db intersecting? f]
You can’t perform that action at this time.
0 commit comments