mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-10-25 20:26:43 +00:00
parent
ade3389cea
commit
5452986ce3
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user