To fix this, you need to set the CSS property transform: perspective(0) for the scroll container.
transform: perspective(0)