scroll-into-view / smooth-scroll-into-view-if-needed

Smoothly scroll elements into view, cross browser!
https://scroll-into-view.dev
MIT License
217 stars 10 forks source link

Smooth scrolling ignores "skipOverflowHiddenElements" #822

Open lyle45 opened 4 years ago

lyle45 commented 4 years ago

When scrolling with this package with behavior = "smooth", skipOverflowHiddenElements is not passed down to scroll-into-view-if-needed making it misbehave

code should extend and pass down all options while overwriting only behavior option with function scrollIntoView(target, {...option, behavior: function(){...}

lyle45 commented 4 years ago

@stipsan This is a one line fix, any chance to help me i nthe close time?

Thanks in advance :)