Skip to content

Commit 96b78ce

Browse files
committed
fix(core): prevent auto pan if set to false
1 parent 7267baa commit 96b78ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/composables/useHandle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function useHandle({
114114

115115
// when the user is moving the mouse close to the edge of the canvas while connecting we move the canvas
116116
const autoPan = () => {
117-
if (!autoPanOnConnect) {
117+
if (!autoPanOnConnect.value) {
118118
return
119119
}
120120

0 commit comments

Comments
 (0)