From 96b78ce19dfc9b478104bad6bf71549d955afeee Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 15 May 2024 08:49:48 +0200 Subject: [PATCH] fix(core): prevent auto pan if set to false --- packages/core/src/composables/useHandle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/composables/useHandle.ts b/packages/core/src/composables/useHandle.ts index 26f8671a..ae23fb12 100644 --- a/packages/core/src/composables/useHandle.ts +++ b/packages/core/src/composables/useHandle.ts @@ -114,7 +114,7 @@ export function useHandle({ // when the user is moving the mouse close to the edge of the canvas while connecting we move the canvas const autoPan = () => { - if (!autoPanOnConnect) { + if (!autoPanOnConnect.value) { return }