using swipe gesture

line direction change on swipe gesture