如何知道拖动的距离、未使用的 PositionUP 或 onInputUp 以区分拖动和长按?
这是一些代码:
var fnd = game.add.group();
var o = fnd.create(game.world.randomX, game.world.randomY, 'fon');
o.events.onDragStart.add(this.DragActivo, this);
DragActive = function (image) {
//When something has been moved is drag but when something has been pressed for long time is clicked
};