onDragUpdate : Phaser.Signal
This signal is dispatched if the Game Object has been inputEnabled
and enableDrag
has been set.
It is sent when a Phaser.Pointer is actively dragging the Game Object.
Be warned: This is a high volume Signal. Be careful what you bind to it.
It is sent six arguments:
{any} The Game Object that received the event.
{Phaser.Pointer} The Phaser.Pointer object that caused the event.
{number} The new x coordinate of the Game Object.
{number} The new y coordinate of the Game Object.
{Phaser.Point} A Point object that contains the point the Game Object was snapped to, if snapOnDrag
has been enabled.
{boolean} The fromStart
boolean, indicates if this is the first update immediately after the drag has started.
- Source code: gameobjects/components/Events.js (Line 217)
Please login to continue.