title: jQuery NiceScroll, scroll the page when the div hits bottom
body: <p>I'm using <a href="http://areaaperta.com/nicescroll/" rel="nofollow noreferrer">nicescroll</a>, it works and is quite interesting. The way I'm using it is on a div, like this : </p>
  
  <p><a href="https://i.stack.imgur.com/IWuej.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IWuej.png" alt="enter image description here"></a></p>
  
  <p>And is great, but, I want to be able to scroll the whole page if the scrollable area (the div) reaches the bottom.</p>
  
  <p>Here is the function I'm using to initialize NiceScroll: </p>
  
  <pre><code>$(function () {
      $(".log").niceScroll({
          cursorcolor:"rgba(64, 58, 65, 0.50)",
          cursorborder: "1px solid rgba(64, 58, 65, 0.49)",
          cursorborderradius: "0",
          preservenativescrolling: "false",
          bouncescroll: false
      });
  });
  </code></pre>