Make the panGesture direction horizontal only