handlerPointerUp method

  1. @override
bool handlerPointerUp(
  1. PointerUpEvent event
)
override

Implementation

@override
bool handlerPointerUp(PointerUpEvent event) {
  if (_pointer == event.pointer && !_initMove && _actionMoveToPosition) {
    final absolutePosition = gameRef.screenToWorld(
      event.position.toVector2(),
    );
    moveTo(absolutePosition);
  }
  _initMove = false;
  return super.handlerPointerUp(event);
}