Fix stack: 100vh slots, single sticky per layer, tabs not separate.
Removes dual-sticky tabs and tiny scroll ticks that broke folder overlap. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -32,9 +32,8 @@ export function initStackScroll(options = {}) {
|
||||
const layer = tab.dataset.goto;
|
||||
const target = document.querySelector(`${sectionSelector}[data-layer="${layer}"]`);
|
||||
if (!target) return;
|
||||
const navH = 56;
|
||||
const y = target.getBoundingClientRect().top + window.scrollY - navH;
|
||||
window.scrollTo({ top: y, behavior: 'smooth' });
|
||||
const y = target.offsetTop - 48;
|
||||
window.scrollTo({ top: Math.max(0, y), behavior: 'smooth' });
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user