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

Why not always using `element.parentNode`?