Translate the candidate transform back inside the allowed boundary. Overscroll is expressed in document coordinates and applied to the scaled space, i.e. xZoomed -= zoom * dx.
xZoomed -= zoom * dx
The candidate value (ViewTransform).
The viewport size.
The laid-out document size.
The adjustedBoundaryMargins value (EdgeInsets).
The resulting ViewTransform.
Translate the candidate transform back inside the allowed boundary. Overscroll is expressed in document coordinates and applied to the scaled space, i.e.
xZoomed -= zoom * dx.