My website does hide the overflow on the first div element and only enables it on the scrollable content (not the header for example).
The thing is, the scroll event does only get fired once. The selector is right, as it does select the scrollable div. But it doesn't re-fire for some reason.
Here is a screenshot of the layout. The first highlighted element is the scrollable div, identified as #scroller. You can see that the overflow has been changed in the attribute section.
The second highlighted element is the scrollactive nav. All links inside of it have the scrollactive-item class applied.
The #scroller is not part of the same Vue component. The Vue component that contains the #scroller element actually uses the Cue component that wraps the above code. So it's basically:
My website does hide the overflow on the first div element and only enables it on the scrollable content (not the header for example).
The thing is, the scroll event does only get fired once. The selector is right, as it does select the scrollable div. But it doesn't re-fire for some reason.
Here is a screenshot of the layout. The first highlighted element is the scrollable div, identified as
#scroller
. You can see that the overflow has been changed in the attribute section. The second highlighted element is thescrollactive
nav. All links inside of it have thescrollactive-item
class applied.I set the component up the following way:
The
#scroller
is not part of the same Vue component. The Vue component that contains the#scroller
element actually uses the Cue component that wraps the above code. So it's basically:Any help is appreciated! I really can't figure out why this isn't working :(