diff --git a/src/touchaction.js b/src/touchaction.js index 7164fe879..93a0bc4d2 100644 --- a/src/touchaction.js +++ b/src/touchaction.js @@ -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)) {