mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 15:47:02 +02:00
Merge pull request #11427 from ElderOrb/case7723
7723 Tablet Should Rotate Faster when using Create app
This commit is contained in:
commit
3500705d0c
2 changed files with 7 additions and 1 deletions
|
@ -222,6 +222,10 @@ WebTablet.prototype.getTabletTextureResolution = function() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
WebTablet.prototype.getLandscape = function() {
|
||||||
|
return this.landscape;
|
||||||
|
}
|
||||||
|
|
||||||
WebTablet.prototype.setLandscape = function(newLandscapeValue) {
|
WebTablet.prototype.setLandscape = function(newLandscapeValue) {
|
||||||
if (this.landscape === newLandscapeValue) {
|
if (this.landscape === newLandscapeValue) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -192,7 +192,9 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (now - validCheckTime > MSECS_PER_SEC) {
|
var needInstantUpdate = UIWebTablet && UIWebTablet.getLandscape() !== landscape;
|
||||||
|
|
||||||
|
if ((now - validCheckTime > MSECS_PER_SEC) || needInstantUpdate) {
|
||||||
validCheckTime = now;
|
validCheckTime = now;
|
||||||
|
|
||||||
updateTabletWidthFromSettings();
|
updateTabletWidthFromSettings();
|
||||||
|
|
Loading…
Reference in a new issue