diff --git a/src/easeljs/display/Stage.js b/src/easeljs/display/Stage.js index 9cb662548..46c8f8994 100644 --- a/src/easeljs/display/Stage.js +++ b/src/easeljs/display/Stage.js @@ -628,7 +628,9 @@ this.createjs = this.createjs||{}; **/ p._handleMouseMove = function(e) { if(!e){ e = window.event; } - this._handlePointerMove(-1, e, e.pageX, e.pageY); + + // make sure the mouse id is <0 (means its not touch) + this._handlePointerMove(-(event.button + 1), e, e.pageX, e.pageY); }; /** @@ -702,7 +704,8 @@ this.createjs = this.createjs||{}; * @param {MouseEvent} e **/ p._handleMouseUp = function(e) { - this._handlePointerUp(-1, e, false); + // make sure the mouse id is <0 (means its not touch) + this._handlePointerUp(-(event.button + 1), e, false); }; /** @@ -739,7 +742,8 @@ this.createjs = this.createjs||{}; * @param {MouseEvent} e **/ p._handleMouseDown = function(e) { - this._handlePointerDown(-1, e, e.pageX, e.pageY); + // make sure the mouse id is <0 (means its not touch) + this._handlePointerDown(-(event.button + 1), e, e.pageX, e.pageY); }; /**