7723 Tablet Should Rotate Faster when using Create app

This commit is contained in:
beholder 2017-09-21 16:26:54 +03:00
parent daf18156f9
commit 8085d0292d
2 changed files with 7 additions and 1 deletions

View file

@ -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;

View file

@ -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();