MCPcopy Create free account
hub / github.com/Noumena-Network/code / dispatchClick

Method dispatchClick

src/ink/ink.tsx:1413–1417  ·  view source on GitHub ↗

* Hit-test the rendered DOM tree at (col, row) and bubble a ClickEvent * from the deepest hit node up through ancestors with onClick handlers. * Returns true if a DOM handler consumed the click. Gated on * altScreenActive — clicks only make sense with a fixed viewport where * nodeCache r

(col: number, row: number)

Source from the content-addressed store, hash-verified

1411 * nodeCache rects map 1:1 to terminal cells (no scrollback offset).
1412 */
1413 dispatchClick(col: number, row: number): boolean {
1414 if (!this.altScreenActive) return false;
1415 const blank = isEmptyCellAt(this.frontFrame.screen, col, row);
1416 return dispatchClick(this.rootNode, col, row, blank);
1417 }
1418 dispatchHover(col: number, row: number): void {
1419 if (!this.altScreenActive) return;
1420 dispatchHover(this.rootNode, col, row, this.hoveredNodes);

Callers

nothing calls this directly

Calls 2

isEmptyCellAtFunction · 0.85
dispatchClickFunction · 0.85

Tested by

no test coverage detected