mauricevancooten / react-anchor-link-smooth-scroll

React component for anchor links using the smooth scroll polyfill.
243 stars 31 forks source link

Fix relative positioned parent bug #20

Closed vai0 closed 5 years ago

vai0 commented 5 years ago

Fixes: https://github.com/mauricevancooten/react-anchor-link-smooth-scroll/issues/19 Modifies how the distance from the top of the page to the anchor element is calculated.

This should still support all major browsers including IE8 and above

vai0 commented 5 years ago

@mauricevancooten Please take a look at the changes, thanks!

mauricevancooten commented 5 years ago

Thank you, sorry for the delay! I have merged your addition and published to NPM.

vai0 commented 5 years ago

@mauricevancooten Thanks!