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

Function onDragOver

src/codemirror.js:3943–3953  ·  view source on GitHub ↗
(cm, e)

Source from the content-addressed store, hash-verified

3941 }
3942
3943 function onDragOver(cm, e) {
3944 var pos = posFromMouse(cm, e);
3945 if (!pos) return;
3946 var frag = document.createDocumentFragment();
3947 drawSelectionCursor(cm, pos, frag);
3948 if (!cm.display.dragCursor) {
3949 cm.display.dragCursor = elt("div", null, "CodeMirror-cursors CodeMirror-dragcursors");
3950 cm.display.lineSpace.insertBefore(cm.display.dragCursor, cm.display.cursorDiv);
3951 }
3952 removeChildrenAndAdd(cm.display.dragCursor, frag);
3953 }
3954
3955 function clearDragCursor(cm) {
3956 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