图像滚动问题解决
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

@ -40,10 +40,10 @@
<div v-if="series" class="right-bottom-text"> <div v-if="series" class="right-bottom-text">
<div v-show="imageInfo.location">Location: {{ <div v-show="imageInfo.location">Location: {{
`${Number(imageInfo.location).toFixed(digitPlaces)} mm` `${Number(imageInfo.location).toFixed(digitPlaces)} mm`
}}</div> }}</div>
<div v-show="imageInfo.sliceThickness">Slice Thickness: {{ <div v-show="imageInfo.sliceThickness">Slice Thickness: {{
`${Number(imageInfo.sliceThickness).toFixed(digitPlaces)} mm` `${Number(imageInfo.sliceThickness).toFixed(digitPlaces)} mm`
}}</div> }}</div>
<div v-show="imageInfo.wwwc">WW/WL: {{ imageInfo.wwwc }}</div> <div v-show="imageInfo.wwwc">WW/WL: {{ imageInfo.wwwc }}</div>
</div> </div>
<div class="orientation-top"> <div class="orientation-top">
@ -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 });
} }