Remove very legacy mouse event handling

This is only needed on such ancient versions of Internet Explorer that
it wouldn't satisfy our other requirements anyway.
This commit is contained in:
Pierre Ossman
2020-06-10 12:56:50 +02:00
committed by Samuel Mannehed
parent 77c32d164d
commit 4a87038080
2 changed files with 4 additions and 13 deletions

View File

@@ -42,16 +42,7 @@ export default class Mouse {
this._updateMousePosition(e);
let pos = this._pos;
let bmask;
if (e.which) {
/* everything except IE */
bmask = 1 << e.button;
} else {
/* IE including 9 */
bmask = (e.button & 0x1) + // Left
(e.button & 0x2) * 2 + // Right
(e.button & 0x4) / 2; // Middle
}
let bmask = 1 << e.button;
Log.Debug("onmousebutton " + (down ? "down" : "up") +
", x: " + pos.x + ", y: " + pos.y + ", bmask: " + bmask);