Fix getUppermostVisibleCanvasOffset