Back to the Shapespark home page

Disable camera move on single clicks in the scene


I have exported the scene to view as a webpage. Is there any way i can disable the camera movements on single clicks in JS?

I would like the camera to move only on double clicks.

You can capture the single click event in any node, something like:

WALK.getViewer().onNodeTypeClicked(function() {
   return true; // returning true prevents further processing of the click event.