fix: sửa lỗi hiển thị icon trước menu item ở menu context trong MAIN SESSION

This commit is contained in:
2026-07-27 21:38:10 +07:00
parent 430e87445e
commit 4b732844c9
3 changed files with 14 additions and 4 deletions
+13 -3
View File
@@ -11135,9 +11135,19 @@ const App = () => {
e.preventDefault();
e.stopPropagation();
clearLocalSelection();
setSelectionMode(null);
setSelectionStart(null);
setSelectionEnd(null);
const wrapper = timelineWrapperRef.current;
if (wrapper) {
const rect = wrapper.getBoundingClientRect();
const scrollLeft = wrapper.scrollLeft;
const rawTime = Math.max(0, (e.clientX - rect.left + scrollLeft) / zoom - leadInMargin);
const time = snapValue !== 'free' ? snapTime(rawTime, snapValue, bpm) : rawTime;
rulerDragStartRef.current = time;
rulerAnchorRef.current = time;
isDraggingRulerRef.current = true;
setSelectionMode('global');
setSelectionStart(time);
setSelectionEnd(time);
}
return;
}
const wrapper = timelineWrapperRef.current;