Change zoom reset animation duration from 500ms to 1000ms in ZoomControl

This commit is contained in:
yangdx
2025-03-15 22:29:58 +08:00
parent 59ac94c61d
commit 55fc1914ff

View File

@@ -77,7 +77,7 @@ const ZoomControl = () => {
// Animate to center with calculated ratio // Animate to center with calculated ratio
sigma.getCamera().animate( sigma.getCamera().animate(
{ x: 0.5, y: 0.5, ratio }, { x: 0.5, y: 0.5, ratio },
{ duration: 500 } { duration: 1000 }
) )
} catch (error) { } catch (error) {
console.error('Error resetting zoom:', error) console.error('Error resetting zoom:', error)