MCPcopy Index your code
hub / github.com/codeaashu/claude-code / _applyScrollModifier

Method _applyScrollModifier

src/server/web/public/terminal.js:912–915  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

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;
915 }
916 handleTouchStart(e3) {
917 this._lastTouchY = e3.touches[0].pageY;
918 }

Callers 2

_getPixelsScrolledMethod · 0.80
getLinesScrolledMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected