SimpleDirectionGestureDetector from the internets