Commits
Marek Vsechovsky committed b8420b1f7d8
Session 147, Step 12: Fix litebox zoom frame bounding box to match viewport shape - AIM-2703 Fix litebox zoom frame bounding box to match viewport shape Outcome: Reworked the hold-to-zoom bounding box computation in `initZoomHandlers()` in `screenshots.js`. It now measures the `.aim-lightbox-image-pane` (the wrap's parent, which keeps its true-size dimensions in both fit and true-size modes) instead of the shrink-wrapped image container, and clamps the object-fit contain scale to 1. The box now has the viewport's shape when the image exceeds the viewport in both dimensions, spans the full fitted extent on the axis where the viewport exceeds the image, and equals the natural image size when the image is smaller than the viewport.