From eb7e54fe8eb184cf116d523a22f4f4949b85866b Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 31 Mar 2026 06:19:09 +0200 Subject: [PATCH] Add getDefaultTriggerVolumeLinkTrigger function in App.tsx --- src/app/App.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index 026f1b31..356dea9c 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -329,6 +329,18 @@ function readVisibilityModeSelectValue(value: "toggle" | "show" | "hide"): boole } } +function getDefaultTriggerVolumeLinkTrigger(triggerOnEnter: boolean, triggerOnExit: boolean): InteractionTriggerKind { + if (triggerOnEnter) { + return "enter"; + } + + if (triggerOnExit) { + return "exit"; + } + + return "enter"; +} + function getErrorMessage(error: unknown): string { if (error instanceof Error) { return error.message;