stopTrackingIfPointerNoLongerDown method

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

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 || event is PointerPanZoomEndEvent) {
    stopTrackingPointer(event.pointer);
  }
}