mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-15 01:33:54 +00:00
Unto the Tab full scroll
This commit is contained in:
parent
6b6cee2451
commit
f5ee0fffb7
@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user