demo/bundle.js
/**
               * Top app bar resize handler that throttle/debounce functions that execute updates.
               * @private
               */
Top app bar resize handler that throttle/debounce functions that execute updates.
@private
Top app bar resize handler that throttle / debounce functions that execute updates . @private
topAppBarResizeHandler_() {
                if (!this.resizeThrottleId_) {
                  this.resizeThrottleId_ = setTimeout(() => {
                    this.resizeThrottleId_ = INITIAL_VALUE;
                    this.throttledResizeHandler_();
                  }, numbers$6.DEBOUNCE_THROTTLE_RESIZE_TIME_MS);
                }
                this.isCurrentlyBeingResized_ = true;
                if (this.resizeDebounceId_) {
                  clearTimeout(this.resizeDebounceId_);
                }
                this.resizeDebounceId_ = setTimeout(() => {
                  this.topAppBarScrollHandler_();
                  this.isCurrentlyBeingResized_ = false;
                  this.resizeDebounceId_ = INITIAL_VALUE;
                }, numbers$6.DEBOUNCE_THROTTLE_RESIZE_TIME_MS);
              }
topAppBarResizeHandler_ ( ) { if ( ! this . resizeThrottleId_ ) { this . resizeThrottleId_ = setTimeout ( ( ) => { this . resizeThrottleId_ = INITIAL_VALUE ; this . throttledResizeHandler_ ( ) ; } , numbers$6 . DEBOUNCE_THROTTLE_RESIZE_TIME_MS ) ; } this . isCurrentlyBeingResized_ = true ; if ( this . resizeDebounceId_ ) { clearTimeout ( this . resizeDebounceId_ ) ; } this . resizeDebounceId_ = setTimeout ( ( ) => { this . topAppBarScrollHandler_ ( ) ; this . isCurrentlyBeingResized_ = false ; this . resizeDebounceId_ = INITIAL_VALUE ; } , numbers$6 . DEBOUNCE_THROTTLE_RESIZE_TIME_MS ) ; }
Top app bar resize handler that throttle/debounce functions that execute updates.
Top app bar resize handler that throttle / debounce functions that execute updates .
// Throttle resize events 10 p/s