B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Listener handling the stackframes container scroll event.
   */
Listener handling the stackframes container scroll event.
Listener handling the stackframes container scroll event .
function DVF__onFramesScroll(aEvent) {
    if (this._dirty) {
      let clientHeight = this._frames.clientHeight;
      let scrollTop = this._frames.scrollTop;
      let scrollHeight = this._frames.scrollHeight;
      if (scrollTop >= (scrollHeight - clientHeight) * 0.95) {
        this._dirty = false;
        DebuggerController.StackFrames.addMoreFrames();
      }
    }
  }
function DVF__onFramesScroll ( aEvent ) { if ( this . _dirty ) { let clientHeight = this . _frames . clientHeight ; let scrollTop = this . _frames . scrollTop ; let scrollHeight = this . _frames . scrollHeight ; if ( scrollTop >= ( scrollHeight - clientHeight ) * 0.95 ) { this . _dirty = false ; DebuggerController . StackFrames . addMoreFrames ( ) ; } } }
Listener handling the stackframes container scroll event.
Listener handling the stackframes container scroll event .
// Update the stackframes container only if we have to. // If the stackframes container was scrolled past 95% of the height, // load more content.