diff --git a/src/VTKViewport/View2D.js b/src/VTKViewport/View2D.js index 1b42660b..96cc5c1b 100644 --- a/src/VTKViewport/View2D.js +++ b/src/VTKViewport/View2D.js @@ -83,7 +83,9 @@ export default class View2D extends Component { const normal = camera.getDirectionOfProjection(); manip.setNormal(...normal); manip.setOrigin(...camera.getFocalPoint()); - handle.rotateFromDirections(handle.getDirection(), normal); + if (handle?.rotateFromDirections) { + handle.rotateFromDirections(handle.getDirection(), normal); + } } componentDidMount() {