diff --git a/apps/client/src/common/hooks/useFadeOutOnInactivity.tsx b/apps/client/src/common/hooks/useFadeOutOnInactivity.tsx index f6d4837f5..89d198690 100644 --- a/apps/client/src/common/hooks/useFadeOutOnInactivity.tsx +++ b/apps/client/src/common/hooks/useFadeOutOnInactivity.tsx @@ -23,6 +23,9 @@ export const useFadeOutOnInactivity = (initialState = false) => { const throttledShowMenu = throttle(setShowMenuTrue, 1000); + // we call the function on mount, to make sure the menu is hidden + throttledShowMenu(); + document.addEventListener('mousemove', throttledShowMenu); document.addEventListener('keydown', throttledShowMenu);