handlerPointerUp method

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

Implementation

@override
bool handlerPointerUp(PointerUpEvent event) {
  if (!enableMouseGesture || event.kind != PointerDeviceKind.mouse) {
    return super.handlerPointerUp(event);
  }

  if (hasGameRef) {
    onMouseScreenTapUp(
      event.pointer,
      event.localPosition.toVector2(),
    );
    _pointer = -1;
  }
  return super.handlerPointerUp(event);
}