Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/xterm.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,10 +957,8 @@ Terminal.prototype.bindMouse = function() {
}

// convert to cols/rows
w = self.element.clientWidth;
h = self.element.clientHeight;
x = Math.ceil((x / w) * self.cols);
y = Math.ceil((y / h) * self.rows);
x = Math.ceil(x / self.charMeasure.width);
y = Math.ceil(y / self.charMeasure.height);

// be sure to avoid sending
// bad positions to the program
Expand Down