From 55fc1914ff9953a72f6e49315737503cc1f9fa3a Mon Sep 17 00:00:00 2001 From: yangdx Date: Sat, 15 Mar 2025 22:29:58 +0800 Subject: [PATCH] Change zoom reset animation duration from 500ms to 1000ms in ZoomControl --- lightrag_webui/src/components/graph/ZoomControl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag_webui/src/components/graph/ZoomControl.tsx b/lightrag_webui/src/components/graph/ZoomControl.tsx index 63e9ea6a..d729db59 100644 --- a/lightrag_webui/src/components/graph/ZoomControl.tsx +++ b/lightrag_webui/src/components/graph/ZoomControl.tsx @@ -77,7 +77,7 @@ const ZoomControl = () => { // Animate to center with calculated ratio sigma.getCamera().animate( { x: 0.5, y: 0.5, ratio }, - { duration: 500 } + { duration: 1000 } ) } catch (error) { console.error('Error resetting zoom:', error)