Fix bottom left and top right computation in moveend example