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

Method _handleMouseMove

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

Source from the content-addressed store, hash-verified

225 }))), this.register((0, n.addDisposableDomListener)(this._element, "mousemove", this._handleMouseMove.bind(this))), this.register((0, n.addDisposableDomListener)(this._element, "mousedown", this._handleMouseDown.bind(this))), this.register((0, n.addDisposableDomListener)(this._element, "mouseup", this._handleMouseUp.bind(this)));
226 }
227 _handleMouseMove(e3) {
228 this._lastMouseEvent = e3;
229 const t3 = this._positionFromMouseEvent(e3, this._element, this._mouseService);
230 if (!t3) return;
231 this._isMouseOut = false;
232 const i3 = e3.composedPath();
233 for (let e4 = 0; e4 < i3.length; e4++) {
234 const t4 = i3[e4];
235 if (t4.classList.contains("xterm")) break;
236 if (t4.classList.contains("xterm-hover")) return;
237 }
238 this._lastBufferCell && t3.x === this._lastBufferCell.x && t3.y === this._lastBufferCell.y || (this._handleHover(t3), this._lastBufferCell = t3);
239 }
240 _handleHover(e3) {
241 if (this._activeLine !== e3.y || this._wasResized) return this._clearCurrentLink(), this._askForLink(e3, false), void (this._wasResized = false);
242 this._currentLink && this._linkAtPosition(this._currentLink.link, e3) || (this._clearCurrentLink(), this._askForLink(e3, true));

Callers 1

constructorMethod · 0.80

Calls 9

_handleHoverMethod · 0.80
_getMouseBufferCoordsMethod · 0.80
_selectToWordAtMethod · 0.80
hasWidthMethod · 0.80
getMethod · 0.65
refreshMethod · 0.45

Tested by

no test coverage detected