Fix incorrect crosshair size after zoom to fit

This commit is contained in:
DD Liu 2020-01-29 20:56:43 -05:00
parent 21f2b489d0
commit 18fa1e2b61

View file

@ -105,6 +105,7 @@ const zoomToFit = isBitmap => {
if (ratio < 1) { if (ratio < 1) {
paper.view.center = bounds.center; paper.view.center = bounds.center;
paper.view.zoom = paper.view.zoom / ratio; paper.view.zoom = paper.view.zoom / ratio;
_resizeCrosshair();
clampViewBounds(); clampViewBounds();
} }
} }