From a75bafc4ba1a03fa70a38c0be86c023d50f1bf76 Mon Sep 17 00:00:00 2001 From: bottleofwater Date: Fri, 9 Dec 2016 10:52:09 +0100 Subject: [PATCH] Don't apply the 32 delta when in sgr mode - fix #394 --- src/xterm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.js b/src/xterm.js index 7f1bf63..dc1c733 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -785,7 +785,7 @@ Terminal.prototype.bindMouse = function() { pos.x -= 32; pos.y -= 32; self.send('\x1b[<' - + ((button & 3) === 3 ? button & ~3 : button) + + (((button & 3) === 3 ? button & ~3 : button) - 32) + ';' + pos.x + ';'