handleTapMove method

  1. @protected
  2. @override
void handleTapMove({
  1. required PointerMoveEvent move,
})
override

A pointer that triggered a tap has moved.

This triggers on the move event if the recognizer has recognized the tap gesture.

The parameter move is the move event of the primary pointer that started the tap sequence.

Implementation

@protected
@override
void handleTapMove({required PointerMoveEvent move}) {
  if (onTapMove != null && move.buttons == kPrimaryButton) {
    final TapMoveDetails details = TapMoveDetails(
      globalPosition: move.position,
      localPosition: move.localPosition,
      kind: getKindForPointer(move.pointer),
      delta: move.delta,
    );
    invokeCallback<void>('onTapMove', () => onTapMove!(details));
  }
}