MCPcopy Create free account
hub / github.com/breck7/scroll / adjustScrollWhenAboveVisible

Function adjustScrollWhenAboveVisible

external/.scrollLibs.js:7784–7788  ·  view source on GitHub ↗
(cm, line, diff)

Source from the content-addressed store, hash-verified

7782 eventMixin(LineWidget)
7783
7784 function adjustScrollWhenAboveVisible(cm, line, diff) {
7785 if (heightAtLine(line) < ((cm.curOp && cm.curOp.scrollTop) || cm.doc.scrollTop)) {
7786 addToScrollTop(cm, diff)
7787 }
7788 }
7789
7790 function addLineWidget(doc, handle, node, options) {
7791 var widget = new LineWidget(doc, node, options)

Callers 1

.scrollLibs.jsFile · 0.85

Calls 2

heightAtLineFunction · 0.85
addToScrollTopFunction · 0.85

Tested by

no test coverage detected