disable warning
This commit is contained in:
parent
2fc497477d
commit
c49e5bfef9
1 changed files with 5 additions and 2 deletions
|
|
@ -150,7 +150,8 @@ function onMouseDown(e) {
|
||||||
if (isSamePoint(screenCursor, newCursor) && isSamePoint(cursor, selection.lead))
|
if (isSamePoint(screenCursor, newCursor) && isSamePoint(cursor, selection.lead))
|
||||||
return;
|
return;
|
||||||
screenCursor = newCursor;
|
screenCursor = newCursor;
|
||||||
|
|
||||||
|
editor.$blockScrolling++;
|
||||||
editor.selection.moveToPosition(cursor);
|
editor.selection.moveToPosition(cursor);
|
||||||
editor.renderer.scrollCursorIntoView();
|
editor.renderer.scrollCursorIntoView();
|
||||||
|
|
||||||
|
|
@ -160,8 +161,9 @@ function onMouseDown(e) {
|
||||||
rectSel[0] = editor.$mouseHandler.$clickSelection.clone();
|
rectSel[0] = editor.$mouseHandler.$clickSelection.clone();
|
||||||
rectSel.forEach(editor.addSelectionMarker, editor);
|
rectSel.forEach(editor.addSelectionMarker, editor);
|
||||||
editor.updateSelectionMarkers();
|
editor.updateSelectionMarkers();
|
||||||
|
editor.$blockScrolling--;
|
||||||
};
|
};
|
||||||
|
editor.$blockScrolling++;
|
||||||
if (isMultiSelect && !accel) {
|
if (isMultiSelect && !accel) {
|
||||||
selection.toSingleRange();
|
selection.toSingleRange();
|
||||||
} else if (!isMultiSelect && accel) {
|
} else if (!isMultiSelect && accel) {
|
||||||
|
|
@ -173,6 +175,7 @@ function onMouseDown(e) {
|
||||||
screenAnchor = session.documentToScreenPosition(selection.lead);
|
screenAnchor = session.documentToScreenPosition(selection.lead);
|
||||||
else
|
else
|
||||||
selection.moveToPosition(pos);
|
selection.moveToPosition(pos);
|
||||||
|
editor.$blockScrolling--;
|
||||||
|
|
||||||
screenCursor = {row: -1, column: -1};
|
screenCursor = {row: -1, column: -1};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue