Skip to content

Commit

Permalink
Stuff in MapZoneCanvas
Browse files Browse the repository at this point in the history
  • Loading branch information
mthh committed Jan 28, 2025
1 parent e174f0c commit e640840
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/MapZoneCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e640840

Please sign in to comment.