From 64117a94b4c3bc2fa1656c4f393b337fddc29fda 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] Fix mobile navigation scrolling to top while opening (#40042) --- app/javascript/mastodon/features/navigation_panel/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/navigation_panel/index.tsx b/app/javascript/mastodon/features/navigation_panel/index.tsx index 1eb268a6018..92f79a5c780 100644 --- a/app/javascript/mastodon/features/navigation_panel/index.tsx +++ b/app/javascript/mastodon/features/navigation_panel/index.tsx @@ -468,7 +468,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()); } }, @@ -508,6 +508,7 @@ export const CollapsibleNavigationPanel: React.FC = () => { }, { from: () => [x.get(), 0], + axis: 'x', filterTaps: true, bounds: isLtrDir ? { left: 0 } : { right: 0 }, rubberband: true,