fix: lỗi alt-click drag nhân bản

This commit is contained in:
2026-07-18 21:48:43 +07:00
parent d408f30b82
commit 39d222126e
+3 -3
View File
@@ -409,8 +409,8 @@
return;
}
// Check for click drag clip (no Alt key required if select tool is in fallback alt-mode)
if (clickedClip && e.altKey) {
// Check for click drag clip (no Ctrl key required if select tool is in fallback ctrl-mode)
if (clickedClip && e.ctrlKey) {
e.preventDefault();
e.stopPropagation();
if (onClipDragStart) {
@@ -2789,7 +2789,7 @@
<button
onClick={() => { setActiveTool('select'); showToast('Công cụ chọn (Select Tool) đã kích hoạt.', 'info'); }}
className={`p-1 rounded transition text-xs flex items-center justify-center ${activeTool === 'select' ? 'bg-cyan-950/80 text-cyan-400 border border-cyan-800/50 font-bold' : 'text-zinc-400 hover:bg-zinc-800 border border-transparent'}`}
title="Select Tool: Chọn khoảng, Đặt playhead (Giữ Alt kéo để di chuyển nhanh clip)"
title="Select Tool: Chọn khoảng, Đặt playhead (Giữ Ctrl kéo để di chuyển nhanh clip)"
>
<i data-lucide="mouse-pointer" className="w-3 h-3"></i>
</button>