chore: 灯箱优化

This commit is contained in:
Ad-closeNN
2026-04-25 20:14:07 +08:00
parent 54b9e8a44f
commit 1db6584677
2 changed files with 11 additions and 2 deletions
+6 -1
View File
@@ -671,7 +671,12 @@ function createPhotoSwipe() {
showHideAnimationType: "fade",
showAnimationDuration: 160,
hideAnimationDuration: 140,
secondaryZoomLevel: (zoomLevel) => Math.min(2.5, zoomLevel.max),
secondaryZoomLevel: (zoomLevel) => {
const fitLevel = zoomLevel.fit
const forcedZoomLevel = fitLevel * 1.8
return Math.max(forcedZoomLevel, Math.min(3, zoomLevel.max))
},
maxZoomLevel: (zoomLevel) => Math.max(4, zoomLevel.fit * 2.5, zoomLevel.max),
wheelToZoom: true,
arrowPrev: false,
arrowNext: false,