镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Link is not scrolling correctly when containerElement has a border #560

Open

Description

@danchistyakov

Hello! In my real project I have a 1px border on my container element, so link scrolling is not passing this 1px to the element. So I don't have activeClass on my Link and I need to scroll this 1px manually.

Here's an example of 10px border to see the problem clearer.

Example: CodeSandbox.

Do you have any ideas? Maybe lib needs some fixes or I need to set this border in my project to another div?

@fisshy

Activity

  1. fisshy commented on Nov 1, 2023

    @fisshy
    Owner

    That's what the offset was meant to solve

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

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