Skip to content

Commit

Permalink
Merge pull request #1151 from videlais/patch-4
Browse files Browse the repository at this point in the history
CocoonJS doesn't support mouse wheel
  • Loading branch information
photonstorm committed Aug 30, 2014
2 parents 5cfb51b + 46c8fe3 commit bc71d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input/Mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,13 @@ Phaser.Mouse.prototype = {
this.game.canvas.addEventListener('mousedown', this._onMouseDown, true);
this.game.canvas.addEventListener('mousemove', this._onMouseMove, true);
this.game.canvas.addEventListener('mouseup', this._onMouseUp, true);
this.game.canvas.addEventListener('mousewheel', this._onMouseWheel, true);
this.game.canvas.addEventListener('DOMMouseScroll', this._onMouseWheel, true);

if (!this.game.device.cocoonJS)
{
this.game.canvas.addEventListener('mouseover', this._onMouseOver, true);
this.game.canvas.addEventListener('mouseout', this._onMouseOut, true);
this.game.canvas.addEventListener('mousewheel', this._onMouseWheel, true);
this.game.canvas.addEventListener('DOMMouseScroll', this._onMouseWheel, true);
}

},
Expand Down

0 comments on commit bc71d61

Please sign in to comment.