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

Method scrollLines

src/server/web/public/terminal.js:881–886  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

879 return 0 !== t3 && (this._optionsService.rawOptions.smoothScrollDuration ? (this._smoothScrollState.startTime = Date.now(), this._smoothScrollPercent() < 1 ? (this._smoothScrollState.origin = this._viewportElement.scrollTop, -1 === this._smoothScrollState.target ? this._smoothScrollState.target = this._viewportElement.scrollTop + t3 : this._smoothScrollState.target += t3, this._smoothScrollState.target = Math.max(Math.min(this._smoothScrollState.target, this._viewportElement.scrollHeight), 0), this._smoothScroll()) : this._clearSmoothScrollState()) : this._viewportElement.scrollTop += t3, this._bubbleScroll(e3, t3));
880 }
881 scrollLines(e3) {
882 if (0 !== e3) if (this._optionsService.rawOptions.smoothScrollDuration) {
883 const t3 = e3 * this._currentRowHeight;
884 this._smoothScrollState.startTime = Date.now(), this._smoothScrollPercent() < 1 ? (this._smoothScrollState.origin = this._viewportElement.scrollTop, this._smoothScrollState.target = this._smoothScrollState.origin + t3, this._smoothScrollState.target = Math.max(Math.min(this._smoothScrollState.target, this._viewportElement.scrollHeight), 0), this._smoothScroll()) : this._clearSmoothScrollState();
885 } else this._onRequestScrollLines.fire({ amount: e3, suppressScrollEvent: false });
886 }
887 _getPixelsScrolled(e3) {
888 if (0 === e3.deltaY || e3.shiftKey) return 0;
889 let t3 = this._applyScrollModifier(e3.deltaY, e3);

Callers 5

_handleBoundaryFocusMethod · 0.45
scrollLinesMethod · 0.45
scrollLinesMethod · 0.45
scrollLinesMethod · 0.45
_selectResultMethod · 0.45

Calls 5

_smoothScrollPercentMethod · 0.80
maxMethod · 0.80
_smoothScrollMethod · 0.80
fireMethod · 0.80

Tested by

no test coverage detected