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

Function onDragOver

external/.scrollLibs.js:8891–8903  ·  view source on GitHub ↗
(cm, e)

Source from the content-addressed store, hash-verified

8889 }
8890
8891 function onDragOver(cm, e) {
8892 var pos = posFromMouse(cm, e)
8893 if (!pos) {
8894 return
8895 }
8896 var frag = document.createDocumentFragment()
8897 drawSelectionCursor(cm, pos, frag)
8898 if (!cm.display.dragCursor) {
8899 cm.display.dragCursor = elt("div", null, "CodeMirror-cursors CodeMirror-dragcursors")
8900 cm.display.lineSpace.insertBefore(cm.display.dragCursor, cm.display.cursorDiv)
8901 }
8902 removeChildrenAndAdd(cm.display.dragCursor, frag)
8903 }
8904
8905 function clearDragCursor(cm) {
8906 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