Change target from tinyscrollbar to body when reaches top/end of it
Hi everyone!,
This is my very first post here and I hope to have the beginner's luck..
I have a div "list" attached with the tinyscrollbar plugin (PlugIn Page).
In order to accomplished that, I had to create some divs inside of it (divs that the plugin needs, such as thumb, track..).. here is the code:
- <div class="list">
- <div class="scrollbar">
- <div class="track">
- <div class="thumb">
- <div class="end"></div>
- </div>
- </div>
- </div>
- <div class="viewport">
- <div class="overview">
<div class="prop shadow">Scrolled Content</div>
- <div class="prop shadow">Scrolled Content</div>
- <div class="prop shadow">Scrolled Content</div>
- <div class="prop shadow">Scrolled Content</div>
- <div class="prop shadow">Scrolled Content</div>
- </div>
- </div>
- </div>
The plugin works great! When the pointer is over the div, the mousewheel controls every up/down scroll movements.
But the problem is, if we reach the top/bottom of "viewport", the scroll gets stuck there and we can't continue scrolling the body unless we get off the div..
Does anyone knows how can I modified this plugin to achieve this?
I'll be truthfully thanked