Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e907efc

Browse files
committed
check for transition properties instead of transform properties.
1 parent 7f99b8b commit e907efc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

swipe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function Swipe(container, options) {
1919
addEventListener: !!window.addEventListener,
2020
touch: ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch,
2121
transitions: (function(temp) {
22-
var props = ['transformProperty', 'WebkitTransform', 'MozTransform', 'OTransform', 'msTransform'];
22+
var props = ['transitionProperty', 'WebkitTransition', 'MozTransition', 'OTransition', 'msTransition'];
2323
for ( var i in props ) if (temp.style[ props[i] ] !== undefined) return true;
2424
return false;
2525
})(document.createElement('swipe'))

0 commit comments

Comments
 (0)