+2
-4
@@ -957,10 +957,8 @@ Terminal.prototype.bindMouse = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// convert to cols/rows
|
// convert to cols/rows
|
||||||
w = self.element.clientWidth;
|
x = Math.ceil(x / self.charMeasure.width);
|
||||||
h = self.element.clientHeight;
|
y = Math.ceil(y / self.charMeasure.height);
|
||||||
x = Math.ceil((x / w) * self.cols);
|
|
||||||
y = Math.ceil((y / h) * self.rows);
|
|
||||||
|
|
||||||
// be sure to avoid sending
|
// be sure to avoid sending
|
||||||
// bad positions to the program
|
// bad positions to the program
|
||||||
|
|||||||
Reference in New Issue
Block a user