changed the click event to dragright