title: Bootbox modal scrolls to top of page before opening
body: <p>I am using bootstrap 3 and bootbox.js for my filterable portfolio, and I want to be able to scroll down when a modal is longer than the browser window, but you should not be able to scroll past the modal.</p>
  
  <p>By default when you click a portfolio item the modal would scroll to the top of the page to open it. I used <code>javascript:void(0);</code> on my portfolio links to fix this. but <code>position:absolute</code> on <code>.modal</code> breaks that. </p>
  
  <p>But <code>position:absolute</code> and <code>overflow:auto</code> allows me to scroll the modal the way I need (just dont know how to limit scrolling till the end of the modal) </p>
  
  <p><strong>Check out my css:</strong></p>
  
  <pre><code>.modal {
  top: 10%;
  left: 50%;
  margin-left: -280px;
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding-box;
  background-clip: padding-box;
  outline: none;
  display: table;
  position: absolute;
  }
  
  .modal-open {
  overflow: auto;
  }
  </code></pre>
  
  <p><a href="http://aliensix.com/lightningbolt/" rel="nofollow"><strong><em>You can look at the live version of my site here</em></strong></a> <em>(scroll to portfolio and click a project)</em> </p>
  
  <p>I have set up a fiddle to make it easier for everyone: <a href="http://jsfiddle.net/p4Yw2/" rel="nofollow">http://jsfiddle.net/p4Yw2/</a></p>
  
  <p><strong>So I need:</strong> </p>
  
  <ol>
  <li><p>Another way to fix the "scroll to the top before alert is opened"
  issue besides <code>javascript:void(0);</code></p></li>
  <li><p>A way to limit the scrolling until a little bit after the modal
      (right now you can scroll all the way down the page when the modal
      is open)</p></li>
  </ol>
  
  <p><em><strong>UPDATE: Ok so what is causing this issue is my smooth-scroll.js file which consists of:</em></strong></p>
  
  <pre><code>$(function(){   
  
  var $window = $(window);
  var scrollTime = 0.7;
  var scrollDistance = 275;
  
  $window.on("mousewheel DOMMouseScroll", function(event){
  
      event.preventDefault(); 
  
      var scrollTop = $window.scrollTop();
      var finalScroll = scrollTop - parseInt(delta*scrollDistance);
  
      TweenMax.to($window, scrollTime, {
          scrollTo : { y: finalScroll, autoKill:true },
              ease: Power1.easeOut,
              overwrite: 5                            
          });
  
      });
  });
  </code></pre>