Complete drag function