(cm, e)
| 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) { |
no test coverage detected