fix regression
This commit is contained in:
parent
2d0f36c868
commit
52c6d89b5d
1 changed files with 7 additions and 3 deletions
|
|
@ -275,9 +275,13 @@ var Editor = function(renderer, doc) {
|
|||
var pos = this.renderer.screenToTextCoordinates(pageX, pageY);
|
||||
pos.row = Math.max(0, Math.min(pos.row, this.doc.getLength()-1));
|
||||
|
||||
this.moveCursorToPosition(pos);
|
||||
if (!this.$clickSelection)
|
||||
this.selection.setSelectionAnchor(pos.row, pos.column);
|
||||
if (e.shiftKey)
|
||||
this.selection.selectToPosition(pos)
|
||||
else {
|
||||
this.moveCursorToPosition(pos);
|
||||
if (!this.$clickSelection)
|
||||
this.selection.clearSelection(pos.row, pos.column);
|
||||
}
|
||||
|
||||
this.renderer.scrollCursorIntoView();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue