I noticed there is an API called setNearLimit
, but it doesn’t seem to work. Is there any way to minimize the occurrence of blank pages?
Hello @wwj8867486,
As part of the CameraZoomOperator class, there is a function called setMouseWheelAdjustCameraTarget which you can try setting to true
:
var om = hwv.operatorManager;
var operatorZoom = om.getOperator(Communicator.OperatorId.Zoom);
operatorZoom.setMouseWheelAdjustCameraTarget(true);
One quick note about zooming is that zooming excessively can cause distortion in the rendering. This is due to loss of precision of the numerical values for the camera attributes (near limit, position, target, etc.).
Thanks,
Tino