smooth-scroll-into-view-if-needed icon indicating copy to clipboard operation
smooth-scroll-into-view-if-needed copied to clipboard

ease option seems to not work

Open burzykovski opened this issue 6 years ago • 0 comments

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 :)

burzykovski avatar Feb 15 '19 15:02 burzykovski