fix(ui): skip scaling if no screen manager in state
This commit is contained in:
parent
51003165cc
commit
5954979e86
1 changed files with 4 additions and 2 deletions
|
|
@ -93,8 +93,10 @@ export default class WebPlayer extends Player {
|
|||
|
||||
scale = () => {
|
||||
const { width, height } = this.wpState.get()
|
||||
this.screen.scale({ width, height })
|
||||
this.inspectorController.scale({ width, height })
|
||||
if (!this.screen && !this.inspectorController) return;
|
||||
// sometimes happens in live assist sessions for some reason
|
||||
this.screen?.scale?.({ width, height })
|
||||
this.inspectorController?.scale?.({ width, height })
|
||||
|
||||
this.targetMarker.updateMarkedTargets()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue