We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b15e24 commit 474e830Copy full SHA for 474e830
.changeset/giant-pants-jam.md
@@ -0,0 +1,5 @@
1
+---
2
+"@vue-flow/core": patch
3
4
+
5
+Use the connecting handle result when updating a connection, so we get an accurate connection position for `toPosition`.
packages/core/src/composables/useHandle.ts
@@ -244,6 +244,7 @@ export function useHandle({
244
}
245
246
const connectingHandle = closestHandle ?? result.toHandle
247
248
updateConnection(
249
connectingHandle && isValid
250
? rendererPointToPoint(
@@ -254,7 +255,7 @@ export function useHandle({
254
255
viewport.value,
256
)
257
: connectionPosition,
- result.toHandle,
258
+ connectingHandle,
259
getConnectionStatus(!!connectingHandle, isValid),
260
261
0 commit comments