From 7dc83114766dfe4be7a098f81ce5c20549606ee9 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Fri, 3 Dec 2021 00:51:26 +0330 Subject: [PATCH] set the default animation duration to 0ms --- src/hooks/useZoomPanHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useZoomPanHelper.ts b/src/hooks/useZoomPanHelper.ts index 1529474d..1502da65 100644 --- a/src/hooks/useZoomPanHelper.ts +++ b/src/hooks/useZoomPanHelper.ts @@ -20,7 +20,7 @@ const initialZoomPanHelper: ZoomPanHelperFunctions = { initialized: false, }; -const getTransition = (selection: D3Selection, duration: number = 300) => { +const getTransition = (selection: D3Selection, duration: number = 0) => { return selection.transition().duration(duration); };