Add support for swipe gestures from lpm state

Where does the magic value `3*3*2` come from?