mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 12:53:44 +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) {
|
||||
if (this.landscape === newLandscapeValue) {
|
||||
return;
|
||||
|
|
|
@ -192,7 +192,9 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if (now - validCheckTime > MSECS_PER_SEC) {
|
||||
var needInstantUpdate = UIWebTablet && UIWebTablet.getLandscape() !== landscape;
|
||||
|
||||
if ((now - validCheckTime > MSECS_PER_SEC) || needInstantUpdate) {
|
||||
validCheckTime = now;
|
||||
|
||||
updateTabletWidthFromSettings();
|
||||
|
|
Loading…
Reference in a new issue