Added snapPoint value (currently unused)

This commit is contained in:
photonstorm 2015-05-26 20:01:52 +01:00
parent 83b533557d
commit fcb2dc8306

View file

@ -194,6 +194,11 @@ Phaser.InputHandler = function (sprite) {
*/ */
this.dragStartPoint = new Phaser.Point(); this.dragStartPoint = new Phaser.Point();
/**
* @property {Phaser.Point} snapPoint - If the sprite is set to snap while dragging this holds the point of the most recent 'snap' event.
*/
this.snapPoint = new Phaser.Point();
/** /**
* @property {Phaser.Point} _dragPoint - Internal cache var. * @property {Phaser.Point} _dragPoint - Internal cache var.
* @private * @private