stopTrackingIfPointerNoLongerDown method

  1. @protected
void stopTrackingIfPointerNoLongerDown (
  1. PointerEvent event
)
@protected, inherited

Stops tracking the pointer associated with the given event if the event is a PointerUpEvent or a PointerCancelEvent event.

Implementation

@protected
void stopTrackingIfPointerNoLongerDown(PointerEvent event) {
  if (event is PointerUpEvent || event is PointerCancelEvent)
    stopTrackingPointer(event.pointer);
}