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:
committed by
Samuel Mannehed
parent
77c32d164d
commit
4a87038080
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user