fix(zoom): Use scaleBy instead of scaleTo for zoom

This commit is contained in:
Braks
2022-04-22 10:54:51 +02:00
parent 4e3f4541a1
commit fa23617ff1

View File

@@ -44,7 +44,7 @@ export default (store: Store = useVueFlow().store): ViewportFuncs => {
if (!hasDimensions.value) await untilDimensions(store)
if (store.d3Selection && store.d3Zoom) {
store.d3Zoom.scaleTo(transition(store.d3Selection, duration), scale)
store.d3Zoom.scaleBy(transition(store.d3Selection, duration), scale)
}
}