fix: sửa lỗi hiển thị icon trước menu item ở menu context trong MAIN SESSION
This commit is contained in:
+13
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user