MCPcopy
hub / github.com/witheve/Eve / scrollToPosition

Method scrollToPosition

src/ide.ts:1054–1057  ·  view source on GitHub ↗
(position:Position)

Source from the content-addressed store, hash-verified

1052 }
1053
1054 scrollToPosition(position:Position) {
1055 let top = this.cm.cursorCoords(position, "local").top;
1056 this.cm.scrollTo(0, Math.max(top - 100, 0));
1057 }
1058
1059 //-------------------------------------------------------
1060 // Spans

Callers 2

updateElisionMethod · 0.80
IDEClass · 0.80

Calls 2

cursorCoordsMethod · 0.80
scrollToMethod · 0.80

Tested by

no test coverage detected