Fix scroll miss-placement while dragging

When dragging and scrolling happen at same time, the dragged element
does not follow the scroll and gets "left behind". This commit/PR fixes
that. The old behavior is still optional.