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
View File
@@ -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:
+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; }