Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Unrecognized touch-action values should behave as "auto"
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Aug 6, 2014
1 parent 43ea4dc commit c092537
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
},
Expand Down

0 comments on commit c092537

Please sign in to comment.