This PR clamps camera distance to a maximum of 10^10 when zooming. This prevents the viewer published state from breaking the json parser due to large values.
To override the osg default zoom behavior, this PR also lets the Zoom function handle all scroll events.
This PR clamps camera distance to a maximum of 10^10 when zooming. This prevents the viewer published state from breaking the json parser due to large values.
To override the osg default zoom behavior, this PR also lets the
Zoom
function handle all scroll events.