From a842b14c845e34b42afcb54b31e3a2d32ab25b7f Mon Sep 17 00:00:00 2001 From: diondiondion Date: Thu, 17 Jul 2025 14:39:40 +0200 Subject: [PATCH] refactor: Disable `useDrag` hook when main menu is not openable (#35414) --- app/javascript/mastodon/features/navigation_panel/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/mastodon/features/navigation_panel/index.tsx b/app/javascript/mastodon/features/navigation_panel/index.tsx index b62e8f9fa62..66f8a657edf 100644 --- a/app/javascript/mastodon/features/navigation_panel/index.tsx +++ b/app/javascript/mastodon/features/navigation_panel/index.tsx @@ -431,6 +431,7 @@ export const CollapsibleNavigationPanel: React.FC = () => { filterTaps: true, bounds: isLtrDir ? { left: 0 } : { right: 0 }, rubberband: true, + enabled: openable, }, );