added hacked together support for simple gestures