I have a Vuetify tabs setup that utilizes vue-scrollto to scroll to a specific position when a tab is clicked.
<v-tabs
centered
grow
color="#009EE2"
>
<div class="slider-background" />
<v-tabs-slider />
<v-tooltip
bottom
v-for="(tab, key) in tabs"
:key="key"
color="#009EE2"
>
<template v-slot:activator="{on}">
<v-tab
v-on="on"
v-scroll-to="{
el: tab.scrollTo,
container: scrollContainer,
duration: 300,
easing: 'linear',
offset: -120,
force: true,
cancelable:true
}"
>
<v-icon v-text="tab.icon" />
</v-tab>
</template>
<div class="v-tooltip-arrow" />
<span>
{{ $t(tab.tooltipText) }}
</span>
</v-tooltip>
</v-tabs>
Now, I am aiming to change the active tab based on the scrolling position.
Despite my efforts searching for a solution, I haven't come across any helpful resources. Here is the documentation I've consulted so far.
Is there a way to achieve this without resorting to JQuery?
For reference, here is an example showcasing the desired result using JQuery: http://jsfiddle.net/cse_tushar/Dxtyu/141/