InputHandler.enableSnap now correctly assigns the snap offset parameters (fixes #515)

This commit is contained in:
photonstorm
2014-03-06 16:45:29 +00:00
parent 512b542e50
commit 081c083176
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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; }