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

Function onDragOver

samples/common/codehighlight/codemirror.js:6584–6594  ·  view source on GitHub ↗
(cm, e)

Source from the content-addressed store, hash-verified

6582 }
6583
6584 function onDragOver(cm, e) {
6585 var pos = posFromMouse(cm, e);
6586 if (!pos) { return }
6587 var frag = document.createDocumentFragment();
6588 drawSelectionCursor(cm, pos, frag);
6589 if (!cm.display.dragCursor) {
6590 cm.display.dragCursor = elt("div", null, "CodeMirror-cursors CodeMirror-dragcursors");
6591 cm.display.lineSpace.insertBefore(cm.display.dragCursor, cm.display.cursorDiv);
6592 }
6593 removeChildrenAndAdd(cm.display.dragCursor, frag);
6594 }
6595
6596 function clearDragCursor(cm) {
6597 if (cm.display.dragCursor) {

Callers 1

registerEventHandlersFunction · 0.85

Calls 4

posFromMouseFunction · 0.85
drawSelectionCursorFunction · 0.85
eltFunction · 0.85
removeChildrenAndAddFunction · 0.85

Tested by

no test coverage detected