From 081c08317672a123896633a659690b91bf3a12fc Mon Sep 17 00:00:00 2001 From: photonstorm Date: Thu, 6 Mar 2014 16:45:29 +0000 Subject: [PATCH] InputHandler.enableSnap now correctly assigns the snap offset parameters (fixes #515) --- README.md | 1 + src/input/InputHandler.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 83001d7c..5e566b92 100644 --- a/README.md +++ b/README.md @@ -216,6 +216,7 @@ Bug Fixes: * Tilemap.putTile can now insert a tile into a null/blank area of the map (before it could only replace existing tiles) * Tilemap.putTile now correctly re-calculates the collision data based on the new collideIndexes array (fixes #371) * Circle.circumferencePoint using the asDegrees parameter would apply degToRad instead of radToDeg (thanks Ziriax, fixes #509) +* InputHandler.enableSnap now correctly assigns the snap offset parameters (fixes #515) TO DO: diff --git a/src/input/InputHandler.js b/src/input/InputHandler.js index 35695e7c..e22b7100 100644 --- a/src/input/InputHandler.js +++ b/src/input/InputHandler.js @@ -1153,7 +1153,7 @@ Phaser.InputHandler.prototype = { * @param {number} [snapOffsetX=0] - Used to offset the top-left starting point of the snap grid. * @param {number} [snapOffsetX=0] - Used to offset the top-left starting point of the snap grid. */ - enableSnap: function (snapX, snapY, onDrag, onRelease, snappOffsetX, snappOffsetY) { + enableSnap: function (snapX, snapY, onDrag, onRelease, snapOffsetX, snapOffsetY) { if (typeof onDrag == 'undefined') { onDrag = true; } if (typeof onRelease == 'undefined') { onRelease = false; }