I'm using this javascript function to scroll down webpages by code:
window.scrollBy({ top: 300, behavior: "smooth" });"
This code works fine with my browser on many webpages.
Now I'm on web.whatsapp.com, and the function doesn't do anything.
I can scroll using the arrow keys on the keyboard and by using the mouse wheel, but not using this code.
What could I investigate what goes wrong here?
Thank you.