Skip to content

Conversation

Yuliang-Lee
Copy link

support instead listen window's scroll event but listen specific dom's scroll event

@ibufu ibufu requested a review from Toilal January 30, 2018 11:11
@ibufu
Copy link
Owner

ibufu commented Apr 16, 2018

If you want to set something else (not body) to scroll container, you could:

<div class="container" v-scroll-spy>
    <div>
        <h1>Header 1</h1>
        <p>Content</p>
    </div>
    <div>
        <h1>Header 2</h1>
        <p>Content</p>
    </div>
</div>
.container {
  position: relative;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants