packages/mdc-top-app-bar/fixed/foundation.js
/**
   * Scroll handler for applying/removing the modifier class
   * on the fixed top app bar.
   */
Scroll handler for applying/removing the modifier class
on the fixed top app bar.
Scroll handler for applying / removing the modifier class on the fixed top app bar .
fixedScrollHandler_() {
    const currentScroll = this.adapter_.getViewportScrollY();
    if (currentScroll <= 0) {
      if (this.wasScrolled_) {
        this.adapter_.removeClass(cssClasses.FIXED_SCROLLED_CLASS);
        this.wasScrolled_ = false;
      }
    } else {
      if (!this.wasScrolled_) {
        this.adapter_.addClass(cssClasses.FIXED_SCROLLED_CLASS);
        this.wasScrolled_ = true;
      }
    }
  }
fixedScrollHandler_ ( ) { const currentScroll = this . adapter_ . getViewportScrollY ( ) ; if ( currentScroll <= 0 ) { if ( this . wasScrolled_ ) { this . adapter_ . removeClass ( cssClasses . FIXED_SCROLLED_CLASS ) ; this . wasScrolled_ = false ; } } else { if ( ! this . wasScrolled_ ) { this . adapter_ . addClass ( cssClasses . FIXED_SCROLLED_CLASS ) ; this . wasScrolled_ = true ; } } }
Scroll handler for applying/removing the modifier class
 on the fixed top app bar.
Scroll handler for applying / removing the modifier class on the fixed top app bar .