Phaser API Documentation

  Version: 
Event: DRAG_END
Phaser.Input.Events.DRAG_END
DRAG_END

Description:

The Pointer Drag End Input Event.

This event is dispatched by the Input Plugin belonging to a Scene if a pointer stops dragging a Game Object.

Listen to this event from within a Scene using: this.input.on('dragend', listener).

To listen for this event from a specific Game Object, use the GAMEOBJECT_DRAG_END event instead.

Parameters:

name type description
pointer Phaser.Input.Pointer

The Pointer responsible for triggering this event.

gameObject Phaser.GameObjects.GameObject

The interactive Game Object that this pointer stopped dragging.

dropped boolean

Whether the Game Object was dropped onto a target.

Since: 3.0.0