make edit mode play nicely

This commit is contained in:
Dante Ruiz 2018-06-06 16:04:36 -07:00
parent 6ddc768f57
commit 5a89a51b85

View file

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