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 elements with a 20px distance from the container.