A form can have one handler, either touch handler or gesture handler.
The form need to create the handler and register to events.
The code is not thread safe, we assume that the calling thread is the
UI thread. There is no blocking operation in the code.