mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-09-20 21:29:28 +00:00
Unto the Tab full scroll
This commit is contained in:
@@ -108,9 +108,9 @@ export default defineComponent({
|
||||
currentItem.value++;
|
||||
scrollTo(currentItem.value);
|
||||
} else if (currentItem.value === arrayOfItems?.value?.length - 1) {
|
||||
isScrolling.value = false;
|
||||
isScrolling.value = true;
|
||||
currentItem.value = 0;
|
||||
scrollWrapRef.value?.scrollTo(0,0)
|
||||
scrollTo(currentItem.value);
|
||||
}
|
||||
}
|
||||
function initScroller() {
|
||||
@@ -119,10 +119,8 @@ export default defineComponent({
|
||||
isScrolling.value = true;
|
||||
if (e.deltaY < 0) {
|
||||
scrollUp();
|
||||
// scrollUp
|
||||
} else {
|
||||
scrollDown();
|
||||
// scrollDown
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user