add position rounding change missed from 753dbbe
This commit is contained in:
parent
f8e96328e4
commit
4c3c132f2b
1 changed files with 2 additions and 3 deletions
|
|
@ -1374,9 +1374,8 @@ var VirtualRenderer = function(container, theme) {
|
|||
var col = Math.round(
|
||||
(x + this.scrollLeft - canvasPos.left - this.$padding) / this.characterWidth
|
||||
);
|
||||
var row = Math.floor(
|
||||
(y + this.scrollTop - canvasPos.top) / this.lineHeight
|
||||
);
|
||||
|
||||
var row = (y + this.scrollTop - canvasPos.top) / this.lineHeight;
|
||||
|
||||
return this.session.screenToDocumentPosition(row, Math.max(col, 0));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue