endLongPress method

void endLongPress(
  1. TouchEvent event
)

Implementation

void endLongPress(TouchEvent event) {
  if (inLongPress) {
    // Mouse events always follow the touch events from a single touch.
    // This prevents the mouse events that fire after a press.
    event.preventDefault();

    inLongPress = false;
    hide(true);
  }
}