react-scroll icon indicating copy to clipboard operation
react-scroll copied to clipboard

Link is not scrolling correctly when containerElement has a border

Open danchistyakov opened this issue 2 years ago • 1 comments

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

danchistyakov avatar Jul 20 '23 13:07 danchistyakov

That's what the offset was meant to solve

fisshy avatar Nov 01 '23 21:11 fisshy