fix(core): prevent auto pan if set to false

This commit is contained in:
braks
2024-05-15 09:00:24 +02:00
committed by Braks
parent 7267baa31c
commit 96b78ce19d
+1 -1
View File
@@ -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
}