From c09253765ad45e5044e01e5550ef3f6281cfd758 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 5 Aug 2014 17:07:39 -0700 Subject: [PATCH] Unrecognized touch-action values should behave as "auto" --- src/touch.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/touch.js b/src/touch.js index ffc655a..4aa9cf1 100644 --- a/src/touch.js +++ b/src/touch.js @@ -47,18 +47,17 @@ EMITTER: 'none', XSCROLLER: 'pan-x', YSCROLLER: 'pan-y', - SCROLLER: /^(?:pan-x pan-y)|(?:pan-y pan-x)|auto|manipulation$/ }, touchActionToScrollType: function(touchAction) { var t = touchAction; var st = this.scrollTypes; - if (t === 'none') { + if (t === st.EMITTER) { return 'none'; } else if (t === st.XSCROLLER) { return 'X'; } else if (t === st.YSCROLLER) { return 'Y'; - } else if (st.SCROLLER.exec(t)) { + } else { return 'XY'; } },