I want to add keyboard control for the tiny scrollbar script. i am not very good at javascript. i know that i can use jquery keypress() function to intercept arrow keys(38,40) and then scroll the overview div by changing its css top property.
I can do this outside of the tinyscrollbar plugin but i would love to use the functions that is already inside the plugin to do that.
Any direction on how to start this will be a big help.thanks.
for more information, check tinyscrollbar code here. And more info and demos here.
I added a new function to the plugin and used it to update scroll on keydown event.
Code added to the plugin:
the code outside the plugin:
the tinyscrollbar_updatescroll scrolls the content to the current position plus the amount sent to it. the original tinyscrollbar_update function scrolls the content to a certain position given in pixels.