From 605bd3beca780be91dd43f9da8b809d155a43d1a Mon Sep 17 00:00:00 2001 From: Andy White Date: Tue, 25 Nov 2014 12:41:31 -0700 Subject: [PATCH] Pan: Fix inverted touch-action for pan recognizer Fixes #728 Closes #730 --- src/recognizers/pan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/recognizers/pan.js b/src/recognizers/pan.js index 8cc3398e4..2d9640799 100644 --- a/src/recognizers/pan.js +++ b/src/recognizers/pan.js @@ -27,10 +27,10 @@ inherit(PanRecognizer, AttrRecognizer, { var direction = this.options.direction; var actions = []; if (direction & DIRECTION_HORIZONTAL) { - actions.push(TOUCH_ACTION_PAN_Y); + actions.push(TOUCH_ACTION_PAN_X); } if (direction & DIRECTION_VERTICAL) { - actions.push(TOUCH_ACTION_PAN_X); + actions.push(TOUCH_ACTION_PAN_Y); } return actions; },