hookehuyr

fix(StudyDetailPage): 调整滚动逻辑中的偏移量

在滚动逻辑中增加30像素的偏移量,以确保标签切换更加准确
......@@ -320,7 +320,7 @@ const handleScroll = () => {
if (!introElement || !commentElement) return;
const scrollTop = window.scrollY;
const commentOffset = commentElement.offsetTop - parseInt(topWrapperHeight.value);
const commentOffset = commentElement.offsetTop - parseInt(topWrapperHeight.value) - 30; // 30是一个偏移量
// 根据滚动位置更新activeTab
if (scrollTop >= commentOffset) {
......