Fix a bug about tablet stuck in Landscape

Fix a bug about tablet stuck in Landscape
when the create app was open in desktop and you put your VR Headset on, 
then next time you open the tablet it was in landscape mode. (because a refresh was happening after the landscape set to false at the closure)
Now the condition is geared to deal with the situation.
This commit is contained in:
Alezia Kurdis 2020-09-27 23:49:48 -04:00 committed by GitHub
parent 3f98cd4934
commit c2064eed89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -824,7 +824,7 @@ var toolBar = (function () {
HMD.displayModeChanged.connect(function() {
if (isActive) {
tablet.gotoHomeScreen();
tablet.gotoHomeScreen();
}
that.setActive(false);
});
@ -2339,8 +2339,12 @@ var PropertiesTool = function (opts) {
};
function updateSelections(selectionUpdated, caller) {
if (HMD.active){
if (HMD.active && visible){
webView.setLandscape(true);
} else {
if (!visible) {
webView.setLandscape(false);
}
}
if (blockPropertyUpdates) {