MCPcopy Index your code
hub / github.com/csev/py4e / dragEnd

Function dragEnd

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:601–610  ·  view source on GitHub ↗
(e2)

Source from the content-addressed store, hash-verified

599 // Let the drag handler handle this.
600 if (webkit) lineSpace.draggable = true;
601 function dragEnd(e2) {
602 if (webkit) lineSpace.draggable = false;
603 draggingText = false;
604 up(); drop();
605 if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {
606 e_preventDefault(e2);
607 setCursor(start.line, start.ch, true);
608 focusInput();
609 }
610 }
611 var up = connect(document, "mouseup", operation(dragEnd), true);
612 var drop = connect(scroller, "drop", operation(dragEnd), true);
613 draggingText = true;

Callers

nothing calls this directly

Calls 4

setCursorFunction · 0.85
upFunction · 0.70
e_preventDefaultFunction · 0.70
focusInputFunction · 0.70

Tested by

no test coverage detected