Fix for when elements is rotated causes a jump when dragging.