mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 15:09:10 -05:00
🐛 Fix dragging path points by returning closest point instead of only the distance
This commit is contained in:
parent
5dd14b929a
commit
0c8678eb87
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@
|
||||||
|
|
||||||
selected-points (dm/get-in state [:workspace-local :edit-path id :selected-points] #{})
|
selected-points (dm/get-in state [:workspace-local :edit-path id :selected-points] #{})
|
||||||
|
|
||||||
start-position (apply min #(gpt/distance start-position %) selected-points)
|
start-position (apply min-key #(gpt/distance start-position %) selected-points)
|
||||||
|
|
||||||
content (st/get-path state :content)
|
content (st/get-path state :content)
|
||||||
points (upg/content->points content)]
|
points (upg/content->points content)]
|
||||||
|
|
Loading…
Add table
Reference in a new issue