MCPcopy Create free account
hub / github.com/codeaashu/claude-code / handleWheel

Method handleWheel

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

Source from the content-addressed store, hash-verified

875 return !(t3 < 0 && 0 !== this._viewportElement.scrollTop || t3 > 0 && i3 < this._lastRecordedBufferHeight) || (e3.cancelable && e3.preventDefault(), false);
876 }
877 handleWheel(e3) {
878 const t3 = this._getPixelsScrolled(e3);
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;

Callers 1

bindMouseMethod · 0.80

Calls 6

_getPixelsScrolledMethod · 0.80
_smoothScrollPercentMethod · 0.80
maxMethod · 0.80
_smoothScrollMethod · 0.80
_bubbleScrollMethod · 0.80

Tested by

no test coverage detected