Skip to content

Commit

Permalink
Merge pull request thebird#193 from pads/transforms-fix
Browse files Browse the repository at this point in the history
Fix for issue thebird#67 - use 2D transforms detection
  • Loading branch information
thebird committed Mar 3, 2013
2 parents 7bdd858 + e7fce9f commit 139bd02
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 @@ -24,7 +24,7 @@ window.Swipe = function(element, options) {
})(),
transitions: (function() {
var temp = document.createElement('swipe'),
props = ['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective'];
props = ['transformProperty', 'WebkitTransform', 'MozTransform', 'OTransform', 'msTransform'];
for ( var i in props ) {
if (temp.style[ props[i] ] !== undefined) return true;
}
Expand Down

0 comments on commit 139bd02

Please sign in to comment.