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

Function adjustScrollWhenAboveVisible

src/codemirror.js:6669–6672  ·  view source on GitHub ↗
(cm, line, diff)

Source from the content-addressed store, hash-verified

6667 eventMixin(LineWidget);
6668
6669 function adjustScrollWhenAboveVisible(cm, line, diff) {
6670 if (heightAtLine(line) < ((cm.curOp && cm.curOp.scrollTop) || cm.doc.scrollTop))
6671 addToScrollPos(cm, null, diff);
6672 }
6673
6674 LineWidget.prototype.clear = function() {
6675 var cm = this.doc.cm, ws = this.line.widgets, line = this.line, no = lineNo(line);

Callers 1

codemirror.jsFile · 0.85

Calls 2

heightAtLineFunction · 0.85
addToScrollPosFunction · 0.85

Tested by

no test coverage detected