Permalink
Browse files

do not prevent defaults for `pan-x pan-y` case

`pan-x pan-y` means browser handles all scrolling/panning, do not
prevent these
  • Loading branch information...
patrickhlauke committed Oct 7, 2015
1 parent bafc807 commit 95eaafadad27bd1b25d20cf976811a451922f1c4
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/touchaction.js
View
@@ -95,6 +95,11 @@ TouchAction.prototype = {
}
}
+ if (hasPanX && hasPanY) {
+ // `pan-x pan-y` means browser handles all scrolling/panning, do not prevent
+ return;
+ }
+
if (hasNone ||
(hasPanY && direction & DIRECTION_HORIZONTAL) ||
(hasPanX && direction & DIRECTION_VERTICAL)) {

0 comments on commit 95eaafa

Please sign in to comment.