I have a web app where with an immersive view. In this view I can zoom in or zoom out with the mouse wheel action.
What I would like to do is to create 2 buttons which call a JavaScript function and simulate the mouse wheel actions.
I tried with:
window.scrollTo(0,300);
But scrolling in my case doesn't zoom (it seems like only the mouse wheel action works).
How can I simulate the mouse wheel up or down?