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

Element.scrollIntoView ponyfills for things like "if-needed" and "smooth"

Home Page:https://scroll-into-view.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect scroll behaviour if html's height set to 100%

danturu opened this issue · comments

If html's height set to 100% it scrolls to top, however scrollMode: 'if-needed' works correctly, i.e doesn't perform scrolling when the scrolling element is visible.

Hey!

I’m not sure what you mean, could you share a codesandbox or a snippet to help me reproduce it? 😄

Just released v2.2.13 which includes multiple bugfixes related to scrollMode: 'if-needed'. Re-open this issue if you're still experiencing trouble 😄