Closed usernamehw closed 3 years ago
Possible with .scrollToPosition()
Something like:
if (scrollingDown) {
this.$refs.itemsContainer.scrollToPosition((index - this.settings.maxListItems + 1) * ITEM_HEIGHT);
} else {
this.$refs.itemsContainer.scrollToItem(index);
}
Executing
.scrollToItem(index);
always sets active element at the top of the list.↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
Is it possible to scroll and have active index at the bottom?