Permalink
Browse files

add touch-action: user as alias for touch-action: none

  • Loading branch information...
azakus committed Apr 20, 2013
1 parent e1c3d09 commit 5d3d05cadbdb9ce53749a31a3c6f424566056da6
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/installer.js
View
@@ -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';

0 comments on commit 5d3d05c

Please sign in to comment.