scroll-behavior-polyfill icon indicating copy to clipboard operation
scroll-behavior-polyfill copied to clipboard

A polyfill for the 'scroll-behavior' CSS-property

Results 13 scroll-behavior-polyfill issues
Sort by recently updated
recently updated
newest added

Firstly, great polyfill – it works perfectly for `scrollTo`, however I'm unable to get `scrollIntoView` working. ### Environment IE 11 on Windows 10 ### Expected behaviour When I call `HTMLElement.scrollIntoView`,...

When calling patched scrolling methods without window context `scrollTo(0, 0)` `getScrollBehavior` throws an error because `inputTarget` is `undefined`. So the solution is to provide default `window` context when calling patched...

I believe `scrollIntoView` should default to `block: "start"`, but appears to be defaulting to `block: "center"`. This causes behavior differences from browsers with the built-in helpers; and also means smooth...