Skip to content

Commit bed0f58

Browse files
committed
fix blob's precision
1 parent af5b0e5 commit bed0f58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/renderer/tool/impl/extension/blob.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
(let [[offset-x offset-y] (or (:nearest-neighbor-offset db)
2828
(:adjusted-pointer-offset db))
2929
radius (pointer-delta db)]
30-
{:x (- offset-x radius)
31-
:y (- offset-y radius)
32-
:size (* radius 2)}))
30+
{:x (.toFixed (- offset-x radius) 3)
31+
:y (.toFixed (- offset-y radius) 3)
32+
:size (.toFixed (* radius 2) 3)}))
3333

3434
(defmethod tool.hierarchy/on-drag-start :blob
3535
[db _e]

0 commit comments

Comments
 (0)