Skip to content

Commit

Permalink
bug with pdf generated have zoomed in images
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas1337 committed Aug 10, 2024
1 parent 0eabbbe commit 89a5ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/website/sharingdialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const CONFIG = {
SMALL: { width: 300, height: 286 }
},

INITIAL_ZOOM: isMobileScreen() ? 2 : 1,
INITIAL_ZOOM: isMobileScreen() ? 1 : 1,
MAX_ZOOM: 3,
MIN_ZOOM: 0.1,
ZOOM_SPEED: 0.001,
Expand Down Expand Up @@ -152,7 +152,7 @@ function createPreviewManager(viewer, settings) {
return null;
}

const { width, height } = index === 0 ? CONFIG.SNAPSHOT_SIZES.LARGE : CONFIG.SNAPSHOT_SIZES.SMALL;
const { width, height } = index === 0 ? { width: 463, height: 500 } : { width: 300, height: 286 };
const { currentZoomLevel, panOffset, orbitOffset } = states[index];
const camera = cameras[index];

Expand Down

0 comments on commit 89a5ec6

Please sign in to comment.