cleanup mouse handling
This commit is contained in:
parent
6411152d00
commit
7a50a070e9
4 changed files with 265 additions and 176 deletions
|
|
@ -1110,7 +1110,7 @@ var VirtualRenderer = function(container, theme) {
|
|||
var row = Math.floor((y + this.scrollTop - canvasPos.top) / this.lineHeight);
|
||||
var col = Math.round(offset);
|
||||
|
||||
return {row: row, column: col, side: offset - col};
|
||||
return {row: row, column: col, side: offset - col > 0 ? 1 : -1};
|
||||
};
|
||||
|
||||
this.screenToTextCoordinates = function(x, y) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue