code: function logScrollEvent(event) {
    if (event.type === 'scrollStart') {
      window.isScrolling = true;
    } else if (event.type === 'scrollStop' || event.type === 'scrollCancel') {
      window.isScrolling = false;
    }
  }
docs: Listen for smooth scroll events so we can determine whether or not a link was just clicked on vs if the user is scrolling (to change animation behavior)