-
![]()
@@ -83,7 +62,7 @@
{{ message.time }}
-
@@ -91,29 +70,34 @@
@@ -288,9 +272,10 @@ onMounted(() => {
diff --git a/src/views/Home.vue b/src/views/Home.vue
index 419d682..8b65447 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -701,12 +701,12 @@ const handleScroll = () => {
documentHeight,
scrollableHeight,
scrollPercentage: scrollPercentage.toFixed(2) + '%',
- shouldShow: scrollPercentage >= 80,
+ shouldShow: scrollPercentage >= 50,
currentShow: showFixedButtons.value
})
- // 当滚动超过80%时显示固定按钮组
- const shouldShow = scrollPercentage >= 80
+ // 当滚动超过50%时显示固定按钮组
+ const shouldShow = scrollPercentage >= 50
if (shouldShow !== showFixedButtons.value) {
showFixedButtons.value = shouldShow
console.log(shouldShow ? '🟢 显示固定按钮组' : '🔴 隐藏固定按钮组')