sync scrolltop to bar for scrollbar