feat(editor): show pinned tabs in separate row with per-row scroll

This commit is contained in:
zipg authored and GitHub committed 2026-09-08 17:11:30 +08:00
1 parent 3b9cd3eec4
commit 05b719e7a6
18 files changed
+958 -252

No files matched your search

+5 -4
View File
@@ -53,10 +53,11 @@ export function useTabScroll(tabsContainerRef: Ref<HTMLElement | null>) {
const previousScrollLeft = el.scrollLeft;
el.scrollLeft = Math.min(maxScrollLeft, Math.max(0, previousScrollLeft + delta));
if (el.scrollLeft !== previousScrollLeft) {
event.preventDefault();
updateScrollButtons();
}
// Consume the gesture even at either boundary. Letting the native wheel
// handler run there causes trackpad rubber-banding and a visible reversal.
event.preventDefault();
event.stopPropagation();
if (el.scrollLeft !== previousScrollLeft) updateScrollButtons();
}
function applyScrollbarDrag(clientX: number) {