Always update Document reference in interaction pane as its enabled state can be forced by viewport pan shortcut

This commit is contained in:
Igor Zinken
2021-01-20 10:08:50 +01:00
parent ee1d108b9a
commit 2f9feee0f0

View File

@@ -57,6 +57,7 @@ class InteractionPane extends sprite {
setState( enabled, document, mode, activeTool ) {
this._enabled = enabled;
this.setDraggable( enabled );
this.document = document;
const zCanvas = getCanvasInstance();
@@ -69,8 +70,7 @@ class InteractionPane extends sprite {
}
return;
}
this.document = document;
this.mode = mode;
this.mode = mode;
this.setBounds(
0, 0,