Change dragging logic.

Using `updateBarSizeAndPosition` instead of manual update of scrollbar
CSS styles.