Closed fhnb16 closed 2 years ago
Sorry for stupid question, find solution:
v-scroll-spy="{data: 'section'}"
than
watch:
{
'section': function ()
{
document.querySelector(' /* my list div */ ').scrollTop = document.querySelector(' /* list item with active class */ ').offsetTop-128;
}
}
How to trigger function if active element changed? This library has events? I have a long menu list with scroll (div with overflow) and want to make autoscroll following Active item..