returns the clicks made in a rectangle