fix scroll-bar interaction when mouse leaves a scrolled-composite while
dragging the bar