smooth-scroll-into-view-if-needed
smooth-scroll-into-view-if-needed copied to clipboard
ease option seems to not work
Hi,
Maybe I'm wrong, but it seems to me that changing function in ease
option doesn't work properly. I've got horizontal navigation menu and even though I've changed default ease
behavior with t => t
to use just linear animation it still behaves non-linearly.
Piece of code responsible for scrolling:
scrollIntoView(element, {
behavior: 'smooth',
scrollMode: 'always',
block: 'nearest',
inline: 'center',
ease: t => t,
});
Anyway, I really appreciate your work @stipsan :)