dever 4 лет назад
Родитель
Сommit
6d0c9bc8c9
1 измененных файлов с 7 добавлено и 5 удалено
  1. 7 5
      assets/dever/core.js

+ 7 - 5
assets/dever/core.js

@@ -371,11 +371,13 @@ var _Dever_Page =
     {
         if ($(this.name).length) {
             var self = this;
-            $(window).scroll(function() {  
-                if ($(window).scrollTop() >= $(document).height() - $(window).height()) {
-                    self.Start(self.name, self.loading);
-                }
-            }); 
+            if (navigator.userAgent.match(/mobile/i)) {
+                $(window).scroll(function() {  
+                    if ($(window).scrollTop() >= $(document).height() - $(window).height()) {
+                        self.Start(self.name, self.loading);
+                    }
+                });
+            }
 
             if (self.button && $(self.button).length) {
                 $(self.button).click(function() {