Calculate maximum X that can be acceptable as a horizontal scroll position.
double getScrollableMaxX(double zoomRatio) => getFullSize(zoomRatio).width - _state!._lastViewSize!.width;