Zoom in and out on click with potree model

Hello, I know this isn’t where I go for Potree help but I believe my question relates to three js as well. I am trying to zoom in/out when the user clicks the “+” or “-” buttons on my control panel. I got it to move left, right, up, down with the “tweenFunction” and it worked. I’ve tried

viewer.scene.camera.zoom += 0.1;

Which didn’t work for me because I don’t have the “camera” variable in my code, only the viewer.

You are asking about implementation details of the Potree library so I’m afraid this is the wrong place for your question. I suggest you create an issue at the Potree repo instead or use stackoverflow.

Thank you @Mugen87