stopDrag method

void stopDrag ()

Ends the startDrag method.

A sprite that was made draggable with the startDrag method remains draggable until a stopDrag method is added or the sprite was dragged with a different touch point.

Implementation

void stopDrag() {
  var stage = this.stage;
  if (stage != null) stage._stopDrag(this);
}