图像滚动问题解决
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2026-03-25 09:26:11 +08:00
parent dd3d738eed
commit d30c9a5f3b
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 });
} }