Add support for swipe gestures from lpm state

The proposed solution does not account for possible negative values in slope -> will use slightly different approach.