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

Method _getMouseEventScrollAmount

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

Source from the content-addressed store, hash-verified

2096 if (t3) return t3[0]--, t3[1]--, t3[1] += this._bufferService.buffer.ydisp, t3;
2097 }
2098 _getMouseEventScrollAmount(e3) {
2099 let t3 = (0, n.getCoordsRelativeToElement)(this._coreBrowserService.window, e3, this._screenElement)[1];
2100 const i3 = this._renderService.dimensions.css.canvas.height;
2101 return t3 >= 0 && t3 <= i3 ? 0 : (t3 > i3 && (t3 -= i3), t3 = Math.min(Math.max(t3, -50), 50), t3 /= 50, t3 / Math.abs(t3) + Math.round(14 * t3));
2102 }
2103 shouldForceSelection(e3) {
2104 return d.isMac ? e3.altKey && this._optionsService.rawOptions.macOptionClickForcesSelection : e3.shiftKey;
2105 }

Callers 1

_handleMouseMoveMethod · 0.80

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected