Skip to content

Commit bc71d61

Browse files
committed
Merge pull request phaserjs#1151 from videlais/patch-4
CocoonJS doesn't support mouse wheel
2 parents 5cfb51b + 46c8fe3 commit bc71d61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/input/Mouse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@ Phaser.Mouse.prototype = {
222222
this.game.canvas.addEventListener('mousedown', this._onMouseDown, true);
223223
this.game.canvas.addEventListener('mousemove', this._onMouseMove, true);
224224
this.game.canvas.addEventListener('mouseup', this._onMouseUp, true);
225-
this.game.canvas.addEventListener('mousewheel', this._onMouseWheel, true);
226-
this.game.canvas.addEventListener('DOMMouseScroll', this._onMouseWheel, true);
227225

228226
if (!this.game.device.cocoonJS)
229227
{
230228
this.game.canvas.addEventListener('mouseover', this._onMouseOver, true);
231229
this.game.canvas.addEventListener('mouseout', this._onMouseOut, true);
230+
this.game.canvas.addEventListener('mousewheel', this._onMouseWheel, true);
231+
this.game.canvas.addEventListener('DOMMouseScroll', this._onMouseWheel, true);
232232
}
233233

234234
},

0 commit comments

Comments
 (0)