update scrollTop on scrollbar dragging
working on scrollbar updating on scroll
refactoring