+1
-1
build-release.sh
+1
-1
build-release.sh
+4
-1
changelog
+4
-1
changelog
···
127
127
- Fixed image resizing when window is thinner than image
128
128
- Fixed closing settings with keybinds
129
129
- Fixed the behaviour of changing the photo path
130
-
- Fixed loading photos in folders that aren't VRChat folders
130
+
- Fixed loading photos in folders that aren't VRChat folders
131
+
132
+
Hotfix 1:
133
+
- Fixed resizing images (again)
+4
-5
src/Components/PhotoViewer.tsx
+4
-5
src/Components/PhotoViewer.tsx
···
154
154
let dstWidth;
155
155
let dstHeight;
156
156
157
-
let imgHeight = imageViewer.height;
158
-
let imgWidth = imageViewer.width;
157
+
let imgHeight = imageViewer.naturalHeight;
158
+
let imgWidth = imageViewer.naturalWidth;
159
159
160
160
if(
161
161
imgWidth / window.innerWidth <
···
178
178
utils.set(photoLayerManager, { translateY: '20px', opacity: 0, display: 'none' });
179
179
180
180
window.addEventListener('keyup', switchPhotoWithKey);
181
-
182
-
resizeImage();
183
-
184
181
window.addEventListener('resize', () => resizeImage());
185
182
186
183
let contextMenuOpen = false;
···
262
259
if(photo){
263
260
imageViewer.src = (window.OS === "windows" ? "http://photo.localhost/" : 'photo://localhost/') + window.PhotoViewerManager.CurrentPhoto()?.path.split('\\').join('/') + "?full";
264
261
imageViewer.crossOrigin = 'anonymous';
262
+
263
+
imageViewer.onload = () => { resizeImage(); }
265
264
266
265
animate(imageViewer, {
267
266
opacity: 1,