Back to the Shapespark home page

Stopping teleport on certain objects

I want to stop teleporting from happening when certain objects are clicked. I’m currently using the Viewer.onNodeTypeClicked api call to setup some complex interactions when certain objects are clicked, and I want the camera to remain stationary instead of getting closer to the clicked object.

Any thoughts?

Try returning true from your onNodeTypeClicked handler.