title: Bootstrap 3 affix triggering on scrolling on div
body: <p>I have a page using Bootstrap 3 and Snap.js library (<a href="https://github.com/jakiestfu/Snap.js/" rel="nofollow noreferrer">https://github.com/jakiestfu/Snap.js/</a>).</p>
  
  <p>I need to have a navbar with affix.</p>
  
  <p>Unfortunately, affix seems to work using <code>window.scroll</code> element, that is not working in this case (i'm wondering why, if I log <code>window.pageYOffset</code> every second it remains fixed to zero and it never fires <code>window.onscroll</code> trigger.).</p>
  
  <p>Is there any way to bind Affix to the scrolling of an inner element?</p>
  
  <p>(similar issue: <a href="https://stackoverflow.com/questions/24481410/bootstrap-affix-not-working-inside-an-iframe">Bootstrap Affix not working inside an Iframe</a>)</p>