packages/core-v3.x/utils/waypoint/index.js
// Smooth scroll events triggered by clicking menu items
Smooth scroll events triggered by clicking menu items
Smooth scroll events triggered by clicking menu items
logScrollEvent(event) {
    if (event.type === 'scrollStart') {
      this.scrolling = true;
    } else if (event.type === 'scrollStop' || event.type === 'scrollCancel') {
      setTimeout(() => {
        this.scrolling = false;
      }, 100);
    }
  }
logScrollEvent ( event ) { if ( event . type === 'scrollStart' ) { this . scrolling = true ; } else if ( event . type === 'scrollStop' || event . type === 'scrollCancel' ) { setTimeout ( ( ) => { this . scrolling = false ; } , 100 ) ; } }
Smooth scroll events triggered by clicking menu items
Smooth scroll events triggered by clicking menu items
// Wait before unsetting the scrolling flag as waypoint events may fire // at same time as `scrollStop` event, avoids race condition