Try first to scroll to see how the scroll snaps on end of elements on x-axis.
Now, click button, click inside the container, and see how scrolling behavior has changed. The elements now snap on end of element, but with a 20px margin to container on the right side.