- <script>
- $( document ).ready(function() {
- $( "#rolagem2" ).height($(document).height() - $(window).height());
-
- $( window ).on('scroll touchmove mousewheel', function(e){
- $( "#rolagem2" ).css('margin-top', $(window).scrollTop());
- });
-
- });
- </script>
#rolagem2 stay with the same size as the standard scroll bar!