How to prevent vertical autoscrolling in VS Code in EJS and JS files?

I’m having an issue with VS Code where my EJS and JS files automatically scroll up whenever I edit code on a lower line. It’s worth noting this doesn’t happen with CSS or HTML files, just JS and EJS.

I’ve tried using the solution found in this post, but using wordWrap didn’t work for me.