Fixed scrollbar positions for synced scrolling

This fixes some problems with the synced scrolling.
For example:
If one of your sides has a vertical scrollbar while the other has not, scrolling horizontal causes the side with vertical scrollbar to scroll. Unfortunately the position of the scroll bar was not synced accurate.

Feel free to accept my pull request, if you like it.

With kind regards