Try first to scroll to see how the scroll snaps on end of elements in block direction.
Now, click button, click inside the container, and see how scrolling behaviour has changed. The elements still snap on end of element like before, but now with a 20px margin to container at the end of the elements in block direction.