Skip to content

Commit

Permalink
Fix for issue thebird#67 - use 2D transforms detection
Browse files Browse the repository at this point in the history
  • Loading branch information
pads committed Feb 13, 2013
1 parent 7bdd858 commit e7fce9f
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 e7fce9f

Please sign in to comment.