Skip to content

Commit fcb2dc8

Browse files
committed
Added snapPoint value (currently unused)
1 parent 83b5335 commit fcb2dc8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/input/InputHandler.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ Phaser.InputHandler = function (sprite) {
194194
*/
195195
this.dragStartPoint = new Phaser.Point();
196196

197+
/**
198+
* @property {Phaser.Point} snapPoint - If the sprite is set to snap while dragging this holds the point of the most recent 'snap' event.
199+
*/
200+
this.snapPoint = new Phaser.Point();
201+
197202
/**
198203
* @property {Phaser.Point} _dragPoint - Internal cache var.
199204
* @private

0 commit comments

Comments
 (0)