Fix bug with computing the rightmost viewable pixel, to stop scrolling to the right from creating a new date element for each pixel scrolled.