mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-13 15:14:25 +02:00
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:
parent
3f98cd4934
commit
c2064eed89
1 changed files with 6 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue