I have tried multiple solutions to achieve a smooth behavior on iPad 8th gen. like iscroll, react scroll and custom polyfill scroll as well but the behavior is instant instead of smooth.
onclick button :
<div className="mt-4 text-center mt-md-5 btn-hide">
<Button className="btn-see-more btn-outline-light Event Based" size="lg" onClick={() =>
executeScroll()}>
{constants.SEE_MORE_BTN}
</Button>
</div>
when i call the scroll function on button click,the scroll behavior is smooth on windows but when i have tested the same scroll on ipad 8th gen then the scroll behavior is instant.
const executeScroll = () => {
const element = document.getElementById('discoverEvents');
if (element) {
element.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
};