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

Function extend

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:621–632  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

619 setCursor(start.line, start.ch, true);
620
621 function extend(e) {
622 var cur = posFromMouse(e, true);
623 if (cur && !posEq(cur, last)) {
624 if (!focused) onFocus();
625 last = cur;
626 setSelectionUser(start, cur);
627 updateInput = false;
628 var visible = visibleLines();
629 if (cur.line >= visible.to || cur.line < visible.from)
630 going = setTimeout(operation(function(){extend(e);}), 150);
631 }
632 }
633
634 function done(e) {
635 clearTimeout(going);

Callers 1

onMouseDownFunction · 0.70

Calls 6

setSelectionUserFunction · 0.85
posFromMouseFunction · 0.70
posEqFunction · 0.70
onFocusFunction · 0.70
visibleLinesFunction · 0.70
operationFunction · 0.70

Tested by

no test coverage detected