Browse Source

Better SmartPhone detection in order to disable video slides

Jay Salvat 10 years ago
parent
commit
41e44c1f86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/vegas.js

+ 1 - 1
src/vegas.js

@@ -541,7 +541,7 @@
     $.vegas.defaults = defaults;
     $.vegas.defaults = defaults;
 
 
     $.vegas.isVideoCompatible = function () {
     $.vegas.isVideoCompatible = function () {
-        return !('ontouchstart' in window || 'onmsgesturechange' in window);
+        return /(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent);
     };
     };
 
 
 })(typeof jQuery !== 'undefined' ? jQuery :
 })(typeof jQuery !== 'undefined' ? jQuery :