Honestly, I gave up on native js scroll into view for smooth scrolling. Now I just use `scrollTo` with a tiny delay:
```js
setTimeout(() => {
window.scrollTo({
top: document.getElementById('myElement').offsetTop,
behavior: 'smooth'
});
}, 100);
```
Not elegant, but hey, it’s consistent.
```js
setTimeout(() => {
window.scrollTo({
top: document.getElementById('myElement').offsetTop,
behavior: 'smooth'
});
}, 100);
```
Not elegant, but hey, it’s consistent.
