packages/mdc-top-app-bar/short/foundation.js
/**
   * Scroll handler for applying/removing the collapsed modifier class
   * on the short top app bar.
   * @private
   */
Scroll handler for applying/removing the collapsed modifier class
on the short top app bar.
@private
Scroll handler for applying / removing the collapsed modifier class on the short top app bar . @private
shortAppBarScrollHandler_() {
    const currentScroll = this.adapter_.getViewportScrollY();
    if (currentScroll <= 0) {
      if (this.isCollapsed) {
        this.adapter_.removeClass(cssClasses.SHORT_COLLAPSED_CLASS);
        this.isCollapsed = false;
      }
    } else {
      if (!this.isCollapsed) {
        this.adapter_.addClass(cssClasses.SHORT_COLLAPSED_CLASS);
        this.isCollapsed = true;
      }
    }
  }
shortAppBarScrollHandler_ ( ) { const currentScroll = this . adapter_ . getViewportScrollY ( ) ; if ( currentScroll <= 0 ) { if ( this . isCollapsed ) { this . adapter_ . removeClass ( cssClasses . SHORT_COLLAPSED_CLASS ) ; this . isCollapsed = false ; } } else { if ( ! this . isCollapsed ) { this . adapter_ . addClass ( cssClasses . SHORT_COLLAPSED_CLASS ) ; this . isCollapsed = true ; } } }
Scroll handler for applying/removing the collapsed modifier class
 on the short top app bar.
Scroll handler for applying / removing the collapsed modifier class on the short top app bar .