Add support for swipe gestures from lpm state

`fminf(Ymax, Xmax)` maybe?