I have a table and i created own scrollbar for iPad in my project.
Now, the table is moving as the user touch and drag it, but how to move my scrollbar according to that table.
I tried but for me its working very strange. For example, if table moves right, then my scrollbar moving left. Since i am not good in Math, i cant do the calculation correctly.
how can i make my scrollbar ( scrolldiv1 and scrolldiv2 ) work perfectly in iPad ?
This is my code that i tried.
I don't want to use any plugins for a scrollbar.