Skip to content

Commit fcf47af

Browse files
committed
fix(ViewContainer): instantiate interactor
1 parent 7bacadd commit fcf47af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/ViewContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class ViewController extends Component {
2222
} else {
2323
this.renderWindow = vtkRenderWindow.newInstance();
2424
this.openglRenderWindow = vtkOpenGLRenderWindow.newInstance();
25+
this.interactor = vtkRenderWindowInteractor.newInstance();
2526
}
2627

2728
this.onEnter = this.onEnter.bind(this);
@@ -32,7 +33,6 @@ class ViewController extends Component {
3233
if (!this.props.root) {
3334
this.renderWindow.addView(this.openglRenderWindow);
3435

35-
this.interactor = vtkRenderWindowInteractor.newInstance();
3636
if (this.props.interactive) {
3737
this.interactor.setView(this.openglRenderWindow);
3838
this.interactor.initialize();

0 commit comments

Comments
 (0)