From 3ead8aee7b3a48c53522b381abfab311268e4968 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Fri, 21 Feb 2014 15:47:00 +0000 Subject: [PATCH] Updated Mouse to use event.button not event.which, so the const references are correct (fix #464) --- src/input/Mouse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/Mouse.js b/src/input/Mouse.js index 0a429375..033236f0 100644 --- a/src/input/Mouse.js +++ b/src/input/Mouse.js @@ -165,7 +165,7 @@ Phaser.Mouse.prototype = { event.preventDefault(); } - this.button = event.which; + this.button = event.button; if (this.mouseDownCallback) {