addCameraEvent
Adds an event that is called when the user moves the camera.
Signatures
- Paramate.Viewport.addCameraEvent( eventHandler )
Details
Adds a custom defined function that is called when the camera starts to be moved by the user.
Example
function OnCameraChange(){
alert( "Camera change by user!" );
};
oConfig.addCameraEvent( OnCameraChange );
Parameters
- eventHandler
-
A callback function that is executed on camera movement.