Improve pan gesture recognizer by detecting only horizontal paning