Basic gesture classification. Everything is either a horizontal r->l line or l->r line. Oh well.