From c9f76779db2e052a79c1620835613b6f0c90daa7 Mon Sep 17 00:00:00 2001 From: Hewston Fox Date: Sat, 21 Mar 2026 02:59:42 +0200 Subject: [PATCH] feat: add nav menu haptic feedback --- src/routes/-/RootLayout/components/Navigation/Navigation.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routes/-/RootLayout/components/Navigation/Navigation.tsx b/src/routes/-/RootLayout/components/Navigation/Navigation.tsx index 04b473b..f9fb12e 100644 --- a/src/routes/-/RootLayout/components/Navigation/Navigation.tsx +++ b/src/routes/-/RootLayout/components/Navigation/Navigation.tsx @@ -215,7 +215,10 @@ export default function Navigation() { entranceDelay={HORIZONTAL_ENTRANCE_DELAYS[index]} onClick={ item.isMenu - ? () => setMenuOpen((v) => (v ? 0 : Math.random())) + ? () => { + tg.hapticFeedback.click(); + setMenuOpen((v) => (v ? 0 : Math.random())); + } : active ? () => {} : () => navigateRoute(item.route!)