+1
-1
build-release.sh
+1
-1
build-release.sh
+4
-1
changelog
+4
-1
changelog
+4
-5
src/Components/PhotoViewer.tsx
+4
-5
src/Components/PhotoViewer.tsx
···
154
let dstWidth;
155
let dstHeight;
156
157
-
let imgHeight = imageViewer.height;
158
-
let imgWidth = imageViewer.width;
159
160
if(
161
imgWidth / window.innerWidth <
···
178
utils.set(photoLayerManager, { translateY: '20px', opacity: 0, display: 'none' });
179
180
window.addEventListener('keyup', switchPhotoWithKey);
181
-
182
-
resizeImage();
183
-
184
window.addEventListener('resize', () => resizeImage());
185
186
let contextMenuOpen = false;
···
262
if(photo){
263
imageViewer.src = (window.OS === "windows" ? "http://photo.localhost/" : 'photo://localhost/') + window.PhotoViewerManager.CurrentPhoto()?.path.split('\\').join('/') + "?full";
264
imageViewer.crossOrigin = 'anonymous';
265
266
animate(imageViewer, {
267
opacity: 1,
···
154
let dstWidth;
155
let dstHeight;
156
157
+
let imgHeight = imageViewer.naturalHeight;
158
+
let imgWidth = imageViewer.naturalWidth;
159
160
if(
161
imgWidth / window.innerWidth <
···
178
utils.set(photoLayerManager, { translateY: '20px', opacity: 0, display: 'none' });
179
180
window.addEventListener('keyup', switchPhotoWithKey);
181
window.addEventListener('resize', () => resizeImage());
182
183
let contextMenuOpen = false;
···
259
if(photo){
260
imageViewer.src = (window.OS === "windows" ? "http://photo.localhost/" : 'photo://localhost/') + window.PhotoViewerManager.CurrentPhoto()?.path.split('\\').join('/') + "?full";
261
imageViewer.crossOrigin = 'anonymous';
262
+
263
+
imageViewer.onload = () => { resizeImage(); }
264
265
animate(imageViewer, {
266
opacity: 1,