Selaa lähdekoodia

Better SmartPhone detection in order to disable video slides

Jay Salvat 10 vuotta sitten
vanhempi
commit
41e44c1f86
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/vegas.js

+ 1 - 1
src/vegas.js

@@ -541,7 +541,7 @@
     $.vegas.defaults = defaults;
 
     $.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 :