diff --git a/scripts/system/libraries/WebTablet.js b/scripts/system/libraries/WebTablet.js index ad87dc9f66..da96481022 100644 --- a/scripts/system/libraries/WebTablet.js +++ b/scripts/system/libraries/WebTablet.js @@ -338,8 +338,11 @@ WebTablet.prototype.setLandscape = function(newLandscapeValue) { var tabletHeight = TABLET_NATURAL_DIMENSIONS.y * tabletScaleFactor; var screenWidth = 0.9275 * tabletWidth; var screenHeight = 0.8983 * tabletHeight; + var webLandScapeRotation = Quat.multiply(Quat.angleAxis(0.5, X_AXIS), Quat.angleAxis(-0.5, Y_AXIS)); + var webRegularRotation = Quat.angleAxis(0.5, X_AXIS); + var webRotationOffset = this.landscape ? webLandScapeRotation : webRegularRotation; Overlays.editOverlay(this.webOverlayID, { - rotation: Quat.multiply(cameraOrientation, ROT_LANDSCAPE_WINDOW), + rotation: Quat.multiply(cameraOrientation, webRotationOffset), dimensions: {x: this.landscape ? screenHeight : screenWidth, y: this.landscape ? screenWidth : screenHeight, z: 0.1} }); };