Skip to content

Commit e95a6ac

Browse files
committed
Update Picviewer CE+.user.js
1 parent ab058ef commit e95a6ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21841,7 +21841,7 @@ ImgOps | https://imgops.com/#b#`;
2184121841
if (!imme && this.following) return;
2184221842
let wSize = getWindowSize();
2184321843

21844-
let padding1 = Math.min(250, wSize.h>>2, wSize.w>>2), padding2 = 50, left, top;//内外侧间距
21844+
let padding1 = Math.min(250, wSize.h>>2, wSize.w>>2, (this.img.naturalWidth || 500)>>1, (this.img.naturalHeight || 500)>>1), padding2 = 50, left, top;//内外侧间距
2184521845
imgWindow.style.position = "fixed";
2184621846
let scrolled = {x: 0, y: 0};
2184721847

0 commit comments

Comments
 (0)