ibufu / vue2-scrollspy

Scrollspy for Vue2
https://ibufu.github.io/vue2-scrollspy/
MIT License
135 stars 32 forks source link

Question: Is it possible to skip a section? #29

Open jclaessens97 opened 6 years ago

jclaessens97 commented 6 years ago

First of all I want to mention that I have read this: You should have the same number of children elements for v-scroll-spy, v-scroll-spy-active v-scroll-spy-link for directives to work properly.

But I'm still wondering if there is a work around where I can tell vue2-scrollspy to skip a section? Right now I have following layout:

    <div class="fluid-container" v-scroll-spy="{offset: 90}">
        <Lead />
        <What />
        <Gamers />
        <Brands />
        <Services />
        <AboutUs />
        <Contact />
    </div>

Each component is a section, and everything is a menu item except 'What' which I'm trying to skip.

I read the docs a few times but I'm not really getting what following options do:

I thought that when I mark the sections I want to be scrollable to with 'v-section-selector' it would work but it doesn't seem like it? If none of the options are capable of what I want to do can you propose a workaround that I can use?

Thanks in advance!

PS. Nice work on the library :)

RiaColaco05 commented 3 years ago

@ibufu any updates on this issue? I'm stuck with a similar scenario.

ibufu commented 3 years ago

@ibufu any updates on this issue? I'm stuck with a similar scenario.

What is the meaning of skip?