From a138059d2677fe3ac4edd9e8e59e792d059a630f Mon Sep 17 00:00:00 2001 From: Sharlayan <118798881+sharlayan@users.noreply.github.com> Date: Tue, 11 Aug 2026 23:02:15 +0900 Subject: [PATCH] [Glitch] Fix mobile navigation scrolling to top while opening Port 62f643348adf8654c1e41dc18042fd659f212fa3 to glitch-soc Signed-off-by: Claire --- .../flavours/glitch/features/navigation_panel/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/navigation_panel/index.tsx b/app/javascript/flavours/glitch/features/navigation_panel/index.tsx index a3d36ad6e4..00101709be 100644 --- a/app/javascript/flavours/glitch/features/navigation_panel/index.tsx +++ b/app/javascript/flavours/glitch/features/navigation_panel/index.tsx @@ -504,7 +504,7 @@ export const CollapsibleNavigationPanel: React.FC = () => { x({ value }: { value: number }) { if (value === 0) { dispatch(openNavigation()); - } else if (isLtrDir ? value > 0 : value < 0) { + } else if (value === OPEN_MENU_OFFSET) { dispatch(closeNavigation()); } }, @@ -544,6 +544,7 @@ export const CollapsibleNavigationPanel: React.FC = () => { }, { from: () => [x.get(), 0], + axis: 'x', filterTaps: true, bounds: isLtrDir ? { left: 0 } : { right: 0 }, rubberband: true,