Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2026-03-25 11:00:20 +08:00
commit 9a3e972723
2 changed files with 6 additions and 6 deletions

View File

@ -190,10 +190,10 @@ export default {
const totalImages = this.imageInfo.total; const totalImages = this.imageInfo.total;
// //
if (currentImageIdIndex >= totalImages - 1) { if (currentImageIdIndex >= totalImages - 1 && e.wheelDeltaY < 0) {
// //
csUtils.jumpToSlice(viewport.element, { imageIndex: 0 }); csUtils.jumpToSlice(viewport.element, { imageIndex: 0 });
} else if (currentImageIdIndex <= 0) { } else if (currentImageIdIndex <= 0 && e.wheelDeltaY > 0) {
// //
csUtils.jumpToSlice(viewport.element, { imageIndex: totalImages - 1 }); csUtils.jumpToSlice(viewport.element, { imageIndex: totalImages - 1 });
} }

View File

@ -188,10 +188,10 @@ export default {
const totalImages = this.imageInfo.total; const totalImages = this.imageInfo.total;
// //
if (currentImageIdIndex >= totalImages - 1) { if (currentImageIdIndex >= totalImages - 1 && e.wheelDeltaY < 0) {
// //
csUtils.jumpToSlice(viewport.element, { imageIndex: 0 }); csUtils.jumpToSlice(viewport.element, { imageIndex: 0 });
} else if (currentImageIdIndex <= 0) { } else if (currentImageIdIndex <= 0 && e.wheelDeltaY > 0) {
// //
csUtils.jumpToSlice(viewport.element, { imageIndex: totalImages - 1 }); csUtils.jumpToSlice(viewport.element, { imageIndex: totalImages - 1 });
} }