Skip to content

Why is there a 20 offset for determining position? #213

Description

@wjmao88

In spy-api.js, the code for determining scrollspy offset has
pos.top + spy.offset - containerOffset < 20
this means that the scrollspy activates before the element actually reaches the top of the page (or whatever offset was set. e.g. setting a 50 offset is effectively a 30).
Is there a particular reason for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions