cleanup mouse handling

This commit is contained in:
nightwing 2012-04-27 11:27:37 +04:00
commit 7a50a070e9
4 changed files with 265 additions and 176 deletions

View file

@ -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) {