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

Method getLinesScrolled

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

Source from the content-addressed store, hash-verified

905 return { bufferElements: r2, cursorElement: i3 };
906 }
907 getLinesScrolled(e3) {
908 if (0 === e3.deltaY || e3.shiftKey) return 0;
909 let t3 = this._applyScrollModifier(e3.deltaY, e3);
910 return e3.deltaMode === WheelEvent.DOM_DELTA_PIXEL ? (t3 /= this._currentRowHeight + 0, this._wheelPartialScroll += t3, t3 = Math.floor(Math.abs(this._wheelPartialScroll)) * (this._wheelPartialScroll > 0 ? 1 : -1), this._wheelPartialScroll %= 1) : e3.deltaMode === WheelEvent.DOM_DELTA_PAGE && (t3 *= this._bufferService.rows), t3;
911 }
912 _applyScrollModifier(e3, t3) {
913 const i3 = this._optionsService.rawOptions.fastScrollModifier;
914 return "alt" === i3 && t3.altKey || "ctrl" === i3 && t3.ctrlKey || "shift" === i3 && t3.shiftKey ? e3 * this._optionsService.rawOptions.fastScrollSensitivity * this._optionsService.rawOptions.scrollSensitivity : e3 * this._optionsService.rawOptions.scrollSensitivity;

Callers 2

i3Method · 0.80
bindMouseMethod · 0.80

Calls 1

_applyScrollModifierMethod · 0.80

Tested by

no test coverage detected