79420815

Date: 2025-02-07 12:06:36
Score: 1.5
Natty:
Report link

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;
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Yoann
  • Low reputation (1):
Posted by: rbestardpino