Skip to content

Commit

Permalink
add touch-action: user as alias for touch-action: none
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Apr 20, 2013
1 parent e1c3d09 commit 5d3d05c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/installer.js
Expand Up @@ -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$/,
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 5d3d05c

Please sign in to comment.