fix(fitView): use clamped zoom closes #831

This commit is contained in:
moklick
2021-01-14 16:19:08 +01:00
parent 9414709836
commit 15228a1e5d
+1 -1
View File
@@ -34,7 +34,7 @@ const getTransformForBounds = (
const x = width / 2 - boundsCenterX * clampedZoom;
const y = height / 2 - boundsCenterY * clampedZoom;
return [x, y, zoom];
return [x, y, clampedZoom];
};
const usePanZoomHelper = (): ZoomPanHelperFunctions => {