From b808e08dd1000d35cb0f63cb70c449527f4d950a Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Wed, 25 Nov 2026 09:48:01 +0900 Subject: [PATCH 1/4] fix(components/MaintainersMap): resume rotation when a profile is dismissed by clicking the globe --- src/components/MaintainersMap.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/MaintainersMap.tsx b/src/components/MaintainersMap.tsx index a3ac9f126..6951b185b 100644 --- a/src/components/MaintainersMap.tsx +++ b/src/components/MaintainersMap.tsx @@ -1047,6 +1047,9 @@ export function MaintainersMap({ maintainers }: MaintainersMapProps) { if (!host) return const selection = select(host) let previous = zoomIdentity + // A press that only closes an open profile should not stop the rotation. + // Dragging from it still does. + let dismissingProfile = false behavior .extent((): [[number, number], [number, number]] => [ [0, 0], @@ -1063,9 +1066,15 @@ export function MaintainersMap({ maintainers }: MaintainersMapProps) { ) .on('start', (event: D3ZoomEvent) => { interacting.current = true - if (event.sourceEvent) pauseRotation() + if (!event.sourceEvent) return + dismissingProfile = openProfileTrigger.current !== null + if (!dismissingProfile) pauseRotation() }) .on('zoom', (event: D3ZoomEvent) => { + if (dismissingProfile && event.sourceEvent) { + dismissingProfile = false + pauseRotation() + } const next = event.transform if (next.k === previous.k) { const radius = From e2308fd8117f5133430aeca0a2607112351ed88b Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Wed, 25 Nov 2026 10:38:24 +0900 Subject: [PATCH 2/4] fix(components/MaintainersMap): keep rotation state while a profile is open --- src/components/MaintainersMap.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/MaintainersMap.tsx b/src/components/MaintainersMap.tsx index 6951b185b..f0c909098 100644 --- a/src/components/MaintainersMap.tsx +++ b/src/components/MaintainersMap.tsx @@ -1047,9 +1047,6 @@ export function MaintainersMap({ maintainers }: MaintainersMapProps) { if (!host) return const selection = select(host) let previous = zoomIdentity - // A press that only closes an open profile should not stop the rotation. - // Dragging from it still does. - let dismissingProfile = false behavior .extent((): [[number, number], [number, number]] => [ [0, 0], @@ -1066,15 +1063,10 @@ export function MaintainersMap({ maintainers }: MaintainersMapProps) { ) .on('start', (event: D3ZoomEvent) => { interacting.current = true - if (!event.sourceEvent) return - dismissingProfile = openProfileTrigger.current !== null - if (!dismissingProfile) pauseRotation() + // An open profile already holds the rotation, and closing it resumes. + if (event.sourceEvent && !openProfileTrigger.current) pauseRotation() }) .on('zoom', (event: D3ZoomEvent) => { - if (dismissingProfile && event.sourceEvent) { - dismissingProfile = false - pauseRotation() - } const next = event.transform if (next.k === previous.k) { const radius = From c0bcd97b2e7cf5e49c5ea117e7ed63f16c4c346e Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Wed, 25 Nov 2026 12:06:08 +0900 Subject: [PATCH 3/4] fix(components/MaintainersMap): hold rotation only while pressing or dragging the globe and pause only on wheel zoom --- src/components/MaintainersMap.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MaintainersMap.tsx b/src/components/MaintainersMap.tsx index f0c909098..8796396e1 100644 --- a/src/components/MaintainersMap.tsx +++ b/src/components/MaintainersMap.tsx @@ -1063,8 +1063,8 @@ export function MaintainersMap({ maintainers }: MaintainersMapProps) { ) .on('start', (event: D3ZoomEvent) => { interacting.current = true - // An open profile already holds the rotation, and closing it resumes. - if (event.sourceEvent && !openProfileTrigger.current) pauseRotation() + // Presses and drags only hold the rotation until release, like hovering a profile. + if (event.sourceEvent instanceof WheelEvent) pauseRotation() }) .on('zoom', (event: D3ZoomEvent) => { const next = event.transform From 5ea2f000da37962b50bf4c09bf6dfbc71d1d88a2 Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Wed, 25 Nov 2026 15:47:01 +0900 Subject: [PATCH 4/4] fix(components/MaintainersMap): hold rotation only during Ctrl/Cmd + wheel zoom instead of pausing it --- src/components/MaintainersMap.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/MaintainersMap.tsx b/src/components/MaintainersMap.tsx index 8796396e1..73588d2f2 100644 --- a/src/components/MaintainersMap.tsx +++ b/src/components/MaintainersMap.tsx @@ -1061,10 +1061,9 @@ export function MaintainersMap({ maintainers }: MaintainersMapProps) { ) && (event.type !== 'wheel' || event.ctrlKey || event.metaKey), ) - .on('start', (event: D3ZoomEvent) => { + .on('start', () => { + // Gestures only hold the rotation until they end, like hovering a profile. interacting.current = true - // Presses and drags only hold the rotation until release, like hovering a profile. - if (event.sourceEvent instanceof WheelEvent) pauseRotation() }) .on('zoom', (event: D3ZoomEvent) => { const next = event.transform @@ -1099,7 +1098,7 @@ export function MaintainersMap({ maintainers }: MaintainersMapProps) { return () => { selection.on('.zoom', null) } - }, [host, behavior, invalidate, pauseRotation]) + }, [host, behavior, invalidate]) function profileTriggerProps( groupId: string,