Merge pull request #11427 from ElderOrb/case7723

7723 Tablet Should Rotate Faster when using Create app
This commit is contained in:
Brad Hefta-Gaub 2017-09-26 22:05:45 -07:00 committed by GitHub
commit 3500705d0c
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();