Skip to content

Commit b8390f4

Browse files
committed
fix: fix wrong position calc in helper2
1 parent 869331e commit b8390f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/customLink.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ export const showLinkController = function (this: MindElixirInstance, linkItem:
264264
})
265265

266266
this.helper2.init(this.map, (deltaX, deltaY) => {
267-
p3x = p3x - deltaX / this.scaleVal
268-
p3y = p3y - deltaY / this.scaleVal
267+
p3x = p3x + deltaX / this.scaleVal
268+
p3y = p3y + deltaY / this.scaleVal
269269
const p4 = calcP({ ...toData, ctrlX: p3x, ctrlY: p3y })
270270
p4x = p4.x
271271
p4y = p4.y

0 commit comments

Comments
 (0)