As @Yoann commented, the overscroll-behavior
css property does the trick.
However, if you include his solution as is
html, body {
overscroll-behavior: none;
}
you are disabling trackpad gestures navigation, which in my case were important.
You can disable elastic scrolling only on the y-axis, allowing users to navigate with their trackpad by doing:
html, body {
overscroll-behavior: auto none;
}