MCPcopy Index your code
hub / github.com/DHTMLX/gantt / addToScrollTop

Function addToScrollTop

samples/common/codehighlight/codemirror.js:3502–3506  ·  view source on GitHub ↗
(cm, top)

Source from the content-addressed store, hash-verified

3500 // Store a relative adjustment to the scroll position in the current
3501 // operation (to be applied when the operation finishes).
3502 function addToScrollTop(cm, top) {
3503 if (top == null) { return }
3504 resolveScrollToPos(cm);
3505 cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;
3506 }
3507
3508 // Make sure that at the end of the operation the current cursor is
3509 // shown.

Callers 3

addLineWidgetFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 1

resolveScrollToPosFunction · 0.85

Tested by

no test coverage detected