Skip to content

Commit dff1674

Browse files
committed
fix disableDeviceInputs updates appliancePlugin state
1 parent 4848711 commit dff1674

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/bridge/Room.ts

+10
Original file line numberDiff line numberDiff line change
@@ -521,12 +521,22 @@ export class RoomAsyncBridge {
521521
if (window.manager) {
522522
window.manager.setReadonly(disable);
523523
}
524+
if (window.appliancePlugin) {
525+
window.appliancePlugin.disableDeviceInputs = disable
526+
}
524527
this.room.disableDeviceInputs = disable;
525528
updateIframePluginState(this.room);
526529
}
527530

531+
// not used now
528532
disableOperations = (disableOperations: boolean) => {
529533
this.room.disableCameraTransform = disableOperations;
534+
if (window.manager) {
535+
window.manager.setReadonly(disableOperations);
536+
}
537+
if (window.appliancePlugin) {
538+
window.appliancePlugin.disableDeviceInputs = disableOperations
539+
}
530540
this.room.disableDeviceInputs = disableOperations;
531541
updateIframePluginState(this.room);
532542
}

0 commit comments

Comments
 (0)