fix #1178 multiple issues when dragging within a parent container that is scrollable