From 425cd51cd6ae746a614d1900c769d982c0bb3345 Mon Sep 17 00:00:00 2001 From: Alezia Kurdis <60075796+AleziaKurdis@users.noreply.github.com> Date: Sat, 17 Sep 2022 22:17:37 -0400 Subject: [PATCH] Play whoosh sound before deletion The sound "whoosh" is now played before calling the notification deletion. Previously it was called after and the effect was a bit wasted by this. --- scripts/system/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/system/notifications.js b/scripts/system/notifications.js index 32f8c913ff..98198c8d3f 100644 --- a/scripts/system/notifications.js +++ b/scripts/system/notifications.js @@ -75,9 +75,9 @@ var hipsPosition = MyAvatar.getJointPosition("Hips"); var eyesRelativeHeight = eyesPosition.y - hipsPosition.y; if (myLeftHand.translation.y > eyesRelativeHeight || myRightHand.translation.y > eyesRelativeHeight) { + audioFeedback.action(); deleteAllExistingNotificationsDisplayed(); notifications = []; - audioFeedback.action(); } }