title: AngularJS infinite scroll, not working only with chrome fullscreen
body: <p>I am doing an infinite scroll on a ng-repeat, changing the limitTo value with a loadMore() function.</p>
  
  <p>Here is the code :</p>
  
  <p>Directive (found on a jsfiddle) :</p>
  
  <pre><code>angular.module('scroll', []).directive('whenScrolled', function() {
      return function(scope, elm, attr) {
          var raw = elm[0];
  
          elm.bind('scroll', function() {
              if (raw.scrollTop + raw.offsetHeight &gt;= raw.scrollHeight) {
                  scope.$apply(attr.whenScrolled);
              }
          });
      };
  });
  </code></pre>
  
  <p>Here is the code into the controller :</p>
  
  <pre><code>var nb = 15;
  $rootScope.vue = nb;
  $rootScope.loadMore = function() {
      $rootScope.vue = $rootScope.vue + 5;
  }
  </code></pre>
  
  <p>Here is the code into the html :</p>
  
  <pre><code>&lt;div class="container-fluid" id="full-2"&gt;
  
      &lt;div class="row" id="full-3"&gt;
          &lt;div class="col-xs-12 col-md-10" id="fixed" when-scrolled="loadMore()"&gt;
              &lt;ul&gt;
                  &lt;li ng-repeat="pg in eleves0 | search:query:['millesime']:operator | orderBy:orderProp | limitTo:vue"&gt;
  
                  [...]
  
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>And here the css :</p>
  
  <pre><code>html, body{
      background-color:#ccc;
      height:100%;
  }
  
  #full{
      height:100%;
  }
  
  #full-1{
      height:90%;
  }
  
  #full-2{
      height:100%;
  }
  
  #full-3{
      height:100%;
  }
  
  #fixed{
      height:100%;
      overflow: auto;
  }
  </code></pre>
  
  <p>This code works perfectly on IE, Firefox, Opera. When i scroll down, new content appears</p>
  
  <p>It doesn't work's on Chrome with full screen.
  It works on Chrome, sometimes, if the window's height is &lt; ~300-500 px (depends on the computer)</p>
  
  <p>do you know where it could come from ? how to resolve it ?</p>