From 435615cc4326fb5e1a01898c3043dfa8b9ee3e7b Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 28 Apr 2014 13:18:12 +0800 Subject: [PATCH] Fixed infinite loading bug --- app/js/directives.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/js/directives.js b/app/js/directives.js index 7cafbea3..2c117fd2 100644 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -312,7 +312,9 @@ angular.module('myApp.directives', ['myApp.filters']) moreNotified = false; $timeout(function () { - $(scrollableWrap).trigger('scroll'); + if (scrollableWrap.scrollHeight != sh) { + $(scrollableWrap).trigger('scroll'); + } }); }); });