MCPcopy
hub / github.com/nwutils/nw-sample-apps / dragEnd

Function dragEnd

mini-code-edit/cm/lib/codemirror.js:401–410  ·  view source on GitHub ↗
(e2)

Source from the content-addressed store, hash-verified

399 // Let the drag handler handle this.
400 if (webkit) lineSpace.draggable = true;
401 function dragEnd(e2) {
402 if (webkit) lineSpace.draggable = false;
403 draggingText = false;
404 up(); drop();
405 if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {
406 e_preventDefault(e2);
407 setCursor(start.line, start.ch, true);
408 focusInput();
409 }
410 }
411 var up = connect(document, "mouseup", operation(dragEnd), true);
412 var drop = connect(scroller, "drop", operation(dragEnd), true);
413 draggingText = true;

Callers

nothing calls this directly

Calls 3

e_preventDefaultFunction · 0.85
setCursorFunction · 0.85
focusInputFunction · 0.85

Tested by

no test coverage detected