mirror of
https://github.com/penpot/penpot.git
synced 2026-05-23 08:53:39 +00:00
🐛 Fix typo on has-point? impl
This commit is contained in:
parent
87f085da74
commit
4e974cd2f3
@ -343,12 +343,11 @@
|
|||||||
(defn fast-has-point?
|
(defn fast-has-point?
|
||||||
[shape point]
|
[shape point]
|
||||||
(let [x1 (dm/get-prop shape :x)
|
(let [x1 (dm/get-prop shape :x)
|
||||||
y1 (dm/get-prop shape :x)
|
y1 (dm/get-prop shape :y)
|
||||||
x2 (+ x1 (dm/get-prop shape :width))
|
x2 (+ x1 (dm/get-prop shape :width))
|
||||||
y2 (+ y1 (dm/get-prop shape :height))
|
y2 (+ y1 (dm/get-prop shape :height))
|
||||||
px (dm/get-prop point :x)
|
px (dm/get-prop point :x)
|
||||||
py (dm/get-prop point :y)]
|
py (dm/get-prop point :y)]
|
||||||
|
|
||||||
(and (>= px x1)
|
(and (>= px x1)
|
||||||
(<= px x2)
|
(<= px x2)
|
||||||
(>= py y1)
|
(>= py y1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user