mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
InputHandler.enableSnap now correctly assigns the snap offset parameters (fixes #515)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user