Function component with tests taken from the page at http://mud.mitplw.com/JSGestureRecognizer/.