Skip to content

Commit 85329b3

Browse files
committed
Remove animation duration from keyboard panning for instant response
1 parent d3cac7a commit 85329b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/components/FlowUpdater.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
}
196196
});
197197
198-
// Listen for pan triggers
198+
// Listen for pan triggers (no duration for instant keyboard response)
199199
let lastPanId = 0;
200200
panTrigger.subscribe((value) => {
201201
if (value.id > lastPanId) {
@@ -204,7 +204,7 @@
204204
x: viewport.x + value.x,
205205
y: viewport.y + value.y,
206206
zoom: viewport.zoom
207-
}, { duration: 100 });
207+
});
208208
lastPanId = value.id;
209209
}
210210
});

0 commit comments

Comments
 (0)