From bc8655a4bb47ae2f857070221cd4c414ff96b7b2 Mon Sep 17 00:00:00 2001 From: auberginewly <3127221787@qq.com> Date: Tue, 19 May 2026 10:23:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(zoom):=20=E6=89=B9=E9=87=8F=E5=BB=BA?= =?UTF-8?q?=E8=AE=AE=E7=BC=A9=E6=94=BE=E5=90=8E=E4=B8=8D=E5=86=8D=E6=8A=A2?= =?UTF-8?q?=E5=8D=A0=E9=80=89=E4=B8=AD=E6=80=81=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E9=9D=A2=E6=9D=BF=E8=A2=AB=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit handleZoomSuggested 每加一个建议缩放就调用 setSelectedZoomId,循环结束后 最后一个 auto-zoom 处于选中态。SettingsPanel 以 !hasTimelineSelection 作为 导出面板渲染条件,导致用户点完"自动添加缩放"后导出按钮消失,必须先点剪辑 轨道取消选中才能导出。 批量 suggest 路径移除选中副作用;单个手动添加 (handleZoomAdded) 保持自动 选中不变。 Closes #610 --- src/components/video-editor/VideoEditor.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsx index 15d582d..ce6314f 100644 --- a/src/components/video-editor/VideoEditor.tsx +++ b/src/components/video-editor/VideoEditor.tsx @@ -864,11 +864,10 @@ export default function VideoEditor() { customScale: ZOOM_DEPTH_SCALES[DEFAULT_ZOOM_DEPTH], focus: clampFocusToDepth(focus, DEFAULT_ZOOM_DEPTH), }; + // Bulk suggest must not steal selection — keeping a zoom selected hides + // the export panel (SettingsPanel gates it on !hasTimelineSelection), + // trapping users who just want to export after auto-zoom. pushState((prev) => ({ zoomRegions: [...prev.zoomRegions, newRegion] })); - setSelectedZoomId(id); - setSelectedTrimId(null); - setSelectedAnnotationId(null); - setSelectedBlurId(null); }, [pushState], );