mirror of
https://github.com/photonstorm/phaser
synced 2024-12-03 18:10:10 +00:00
Merge pull request #1151 from videlais/patch-4
CocoonJS doesn't support mouse wheel
This commit is contained in:
commit
bc71d61734
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue