MCPcopy
hub / github.com/codeaashu/claude-code / syncScrollArea

Method syncScrollArea

src/server/web/public/terminal.js:852–855  ·  view source on GitHub ↗
(e3 = false)

Source from the content-addressed store, hash-verified

850 this._viewportElement.scrollTop !== e3 && (this._ignoreNextScrollEvent = true, this._viewportElement.scrollTop = e3), this._refreshAnimationFrame = null;
851 }
852 syncScrollArea(e3 = false) {
853 if (this._lastRecordedBufferLength !== this._bufferService.buffer.lines.length) return this._lastRecordedBufferLength = this._bufferService.buffer.lines.length, void this._refresh(e3);
854 this._lastRecordedViewportHeight === this._renderService.dimensions.css.canvas.height && this._lastScrollTop === this._activeBuffer.ydisp * this._currentRowHeight && this._renderDimensions.device.cell.height === this._currentDeviceCellHeight || this._refresh(e3);
855 }
856 _handleScroll(e3) {
857 if (this._lastScrollTop = this._viewportElement.scrollTop, !this._viewportElement.offsetParent) return;
858 if (this._ignoreNextScrollEvent) return this._ignoreNextScrollEvent = false, void this._onRequestScrollLines.fire({ amount: 0, suppressScrollEvent: true });

Callers 4

openMethod · 0.80
_afterResizeMethod · 0.80
constructorMethod · 0.80
resetMethod · 0.80

Calls 1

_refreshMethod · 0.80

Tested by

no test coverage detected