From 828ca36c1c3c3ee3027544b0731b398937ab154d Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sat, 18 Feb 2023 21:25:22 +1100 Subject: [PATCH] refactor(web/radial): disable transition when swapping to submenu --- web/src/features/menu/radial/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/features/menu/radial/index.tsx b/web/src/features/menu/radial/index.tsx index d387586..7f73735 100644 --- a/web/src/features/menu/radial/index.tsx +++ b/web/src/features/menu/radial/index.tsx @@ -63,10 +63,10 @@ const RadialMenu: React.FC = () => { useNuiEvent('openRadialMenu', async (data: { items: RadialMenuItem[]; sub?: boolean } | false) => { if (!data) return setVisible(false); - if (visible) { - setVisible(false); - await new Promise((resolve) => setTimeout(resolve, 100)); - } + // if (visible) { + // setVisible(false); + // await new Promise((resolve) => setTimeout(resolve, 100)); + // } setMenu(data); setVisible(true); });