When the scroll area is restricted, we center it in the viewport. The
old logic did this by translating an inner element of the
scroller. This had two problems:
It did not consider the maximal allowed translation causing the
panorama not to cover the viewport in some cases.
It moves the logo off position.
Instead consider the translation required for centering when
positioning the scoller's inner element.
When the scroll area is restricted, we center it in the viewport. The old logic did this by translating an inner element of the scroller. This had two problems:
It did not consider the maximal allowed translation causing the panorama not to cover the viewport in some cases.
It moves the logo off position.
Instead consider the translation required for centering when positioning the scoller's inner element.