From df51d66f60b5e65f081988bfac5e3e0475ef3983 Mon Sep 17 00:00:00 2001 From: luiscuenca Date: Fri, 17 Nov 2017 13:40:22 -0700 Subject: [PATCH] no double scaling and comments --- scripts/system/notifications.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/system/notifications.js b/scripts/system/notifications.js index cb7251c8b0..11c083dacc 100644 --- a/scripts/system/notifications.js +++ b/scripts/system/notifications.js @@ -212,8 +212,7 @@ buttonPosition; var sensorScaleFactor = isOnHMD ? MyAvatar.sensorToWorldScale : 1.0; // Notification plane positions - // y, NOTIFICATION_3D_SCALE and noticeHeight need to be scaled by sensorScaleFactor; - noticeY = -sensorScaleFactor * (y * NOTIFICATION_3D_SCALE * sensorScaleFactor + 0.5 * noticeHeight); + noticeY = -sensorScaleFactor * (y * NOTIFICATION_3D_SCALE + 0.5 * noticeHeight); notificationPosition = { x: 0, y: noticeY, z: 0 }; buttonPosition = { x: 0.5 * sensorScaleFactor * (noticeWidth - NOTIFICATION_3D_BUTTON_WIDTH), y: noticeY, z: 0.001 };