I've vuetify tabs implemented with vue-scrollto that when you click a tab it will scroll to a position.
<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>
So what I want to achieve now is that when scrolling the active tab changes depending on the position.
I've searched for days and I haven't found anything. documentation
Is there a way without using JQuery?
Result example with JQuery: http://jsfiddle.net/cse_tushar/Dxtyu/141/
onScroll
event (developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/…) – IVO GELOV