From 5d3d05cadbdb9ce53749a31a3c6f424566056da6 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Fri, 19 Apr 2013 17:31:50 -0700 Subject: [PATCH] add touch-action: user as alias for touch-action: none --- src/installer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/installer.js b/src/installer.js index b1510253..cc8cae24 100644 --- a/src/installer.js +++ b/src/installer.js @@ -18,7 +18,7 @@ var installer = { ATTRIB: 'touch-action', SELECTOR: '[touch-action]', - EMITTER: 'none', + EMITTER: /^none|user$/, XSCROLLER: 'pan-x', YSCROLLER: 'pan-y', SCROLLER: /^(?:pan-x pan-y)|(?:pan-y pan-x)|scroll$/, @@ -52,7 +52,7 @@ }, touchActionToScrollType: function(inTouchAction) { var t = inTouchAction; - if (t === this.EMITTER) { + if (this.EMITTER.exec(t)) { return 'none'; } else if (t === this.XSCROLLER) { return 'X';