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

Method _getMouseBufferCoords

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

Source from the content-addressed store, hash-verified

2092 this._model.handleTrim(e3) && this.refresh();
2093 }
2094 _getMouseBufferCoords(e3) {
2095 const t3 = this._mouseService.getCoords(e3, this._screenElement, this._bufferService.cols, this._bufferService.rows, true);
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;

Callers 6

_isClickInSelectionMethod · 0.80
_selectWordAtCursorMethod · 0.80
_handleSingleClickMethod · 0.80
_handleTripleClickMethod · 0.80
_handleMouseMoveMethod · 0.80

Calls 1

getCoordsMethod · 0.80

Tested by

no test coverage detected