I have looked at I think all the scrollbars code but have not yet been able to find a simple one that does not use jQuery or a somewhat complex library.
Has anyone created there own simple scrollbar using just Javascript? What I am looking for is an example of how this can be done. In particular I have a simple Bootstrap web page with:
<body>
<header> ....</header>
<main> ......</main>
</body>
What I would like to do is to be able to have a small in page scroll bar appear to the right of the <main>
area if the content there is larger than will fit on a single page. For styling purposes I would like this not to be the browser default scroll bar.
Here's an example of what I am looking for but this one does use jQuery so I cannot use it on my site:
http://manos.malihu.gr/repository/custom-scrollbar/demo/examples/complete_examples.html
I am looking for some way to do this using Javascript in a modern browser IE9 and above. As I think this would be useful for many people I have opened up a bounty of 200 for this in the hope that someone could provide a good example of a draggable page scrollbar that also would respond to the mousewheel when over the page content area.
Just an update. I am not looking for a mobile solution for this. I am just looking for a solution that would work inside a PC / Mac browser. The site is not set up or suitable for a phone. It's possible to use on an IPad / tablet but for those needs I would like to be able to have the scrollbar default to use just the normal tablet scrolling method.