From 5a89a51b852e8f6cd6b199312ddb40c2105081d7 Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Wed, 6 Jun 2018 16:04:36 -0700 Subject: [PATCH] make edit mode play nicely --- scripts/system/libraries/WebTablet.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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} }); };