mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 14:21:38 +02:00
Merge pull request #6531 from mdbenito/fix/choppy-closest-point
✨ Fix choppy behaviour of new node on path
This commit is contained in:
commit
df27db1996
2 changed files with 8 additions and 47 deletions
|
@ -348,7 +348,7 @@
|
|||
ms/mouse-position
|
||||
(mf/deps base-content zoom)
|
||||
(fn [position]
|
||||
(when-let [point (path.segment/closest-point base-content position)]
|
||||
(when-let [point (path.segment/closest-point base-content position (/ 0.01 zoom))]
|
||||
(reset! hover-point (when (< (gpt/distance position point) (/ 10 zoom)) point)))))
|
||||
|
||||
[:g.path-editor {:ref editor-ref}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue