mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix incorrect mouse position
Incorrect mouse position in Midnight Commander
This commit is contained in:
committed by
GitHub
parent
43fc6f1fa3
commit
dc6aab88b0
+2
-2
@@ -1325,8 +1325,8 @@
|
||||
// convert to cols/rows
|
||||
w = self.element.clientWidth;
|
||||
h = self.element.clientHeight;
|
||||
x = Math.round((x / w) * self.cols);
|
||||
y = Math.round((y / h) * self.rows);
|
||||
x = Math.ceil((x / w) * self.cols);
|
||||
y = Math.ceil((y / h) * self.rows);
|
||||
|
||||
// be sure to avoid sending
|
||||
// bad positions to the program
|
||||
|
||||
Reference in New Issue
Block a user