Description
One of the things I wish I could do is alter the scrolling mechanism or skipping elements to scroll based on certain conditions, but the side-effect of attaching a function to behavior is that it effectively interrupts all scrolling. It would be nice to alter the list of elements to scroll, and where they will scroll to, but then pass the action back to the library, since it already polyfills smooth scrolling. Otherwise, if I use behavior: Function
, then I have to additionally polyfill smooth scrolling, even though it's polyfilled in your library internally. It would be nice to say back to scrollIntoView
, "yes, continue scrolling this and this element smoothly, although change element 2's eventual scroll position. And no, don't scroll element 3." And then the magic just continues from there.