Skip to content

Commit 56ebde8

Browse files
committed
fix move events not firing in svelte flow
1 parent f28059e commit 56ebde8

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.changeset/fair-fans-train.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@xyflow/svelte': patch
3+
---
4+
5+
Fix `onmove`, `onmovestart` and `onmoveend` events not firing

packages/svelte/src/lib/actions/zoom/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ export default function zoom(domNode: Element, params: ZoomParams) {
4444
minZoom,
4545
maxZoom,
4646
initialViewport,
47+
onPanZoomStart,
48+
onPanZoom,
49+
onPanZoomEnd,
4750
translateExtent,
4851
paneClickDistance,
4952
setPanZoomInstance,
@@ -55,9 +58,12 @@ export default function zoom(domNode: Element, params: ZoomParams) {
5558
domNode,
5659
minZoom,
5760
maxZoom,
61+
paneClickDistance,
5862
translateExtent,
5963
viewport: initialViewport,
60-
paneClickDistance,
64+
onPanZoom,
65+
onPanZoomStart,
66+
onPanZoomEnd,
6167
onDraggingChange
6268
});
6369

0 commit comments

Comments
 (0)