handleNonAllowedPointer method

  1. @override
void handleNonAllowedPointer(
  1. PointerDownEvent event
)
override

Handles a pointer being added that's not allowed by this recognizer.

Subclasses can override this method and reject the gesture.

See:

Implementation

@override
void handleNonAllowedPointer(PointerDownEvent event) {
  // There can be multiple drags simultaneously. Their effects are combined.
  if (event.buttons != kPrimaryButton) {
    if (!_wonArenaForPrimaryPointer) {
      super.handleNonAllowedPointer(event);
    }
  }
}