Skip to content

Commit

Permalink
check for transition properties instead of transform properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
stutrek committed Mar 25, 2013
1 parent 7f99b8b commit e907efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function Swipe(container, options) {
addEventListener: !!window.addEventListener,
touch: ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch,
transitions: (function(temp) {
var props = ['transformProperty', 'WebkitTransform', 'MozTransform', 'OTransform', 'msTransform'];
var props = ['transitionProperty', 'WebkitTransition', 'MozTransition', 'OTransition', 'msTransition'];
for ( var i in props ) if (temp.style[ props[i] ] !== undefined) return true;
return false;
})(document.createElement('swipe'))
Expand Down

0 comments on commit e907efc

Please sign in to comment.