Function declaration

Execution flow

  1. Checks whether a sequence of input events is self-consistent.
    1. Defensive cleanup for new gesture.
      1. Filter the touch event to apply security policies.
        1. Call mOnTouchListener.onTouch(event) if mOnTouchListener is not null
          1. Call onTouchEvent(event) if the event was not intercepted
            1. If the event still was not intercepted. Then, notifies the verifier that a given event was unhandled and the rest of the trace for the event should be ignored.
              1. Clean up after nested scrolls if this is the end of a gesture. also cancel it if we tried an ACTION_DOWN but we didn't want the rest of the gesture.

                Reference

                ViewGroup dispatchTouchEventLeetcode_198.打家劫舍
                Loading...