From e640840a8759330b98ea48c4b1eeffc14aad6cec Mon Sep 17 00:00:00 2001 From: Matthieu Viry Date: Tue, 28 Jan 2025 13:37:04 +0100 Subject: [PATCH] Stuff in MapZoneCanvas --- src/components/MapZoneCanvas.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/MapZoneCanvas.tsx b/src/components/MapZoneCanvas.tsx index e2e89496..5fc75c39 100644 --- a/src/components/MapZoneCanvas.tsx +++ b/src/components/MapZoneCanvas.tsx @@ -470,12 +470,13 @@ export default function MapZoneCanvas(): JSX.Element { }; const applyZoomPanDebounced = throttle((e) => { - console.log('inside throttled'); + console.log('Entering throttled'); applyZoomPan(e); previous.x = e.transform.x; previous.y = e.transform.y; previous.k = e.transform.k; - }, 100, false); + console.log('Quitting throttled'); + }, 500, false, true); /* eslint-disable no-underscore-dangle, no-param-reassign */ // Set up the zoom behavior