remove click event after calling detach()

When detach() is called, the click event listener can be removed in addition to the scroll event.