style: help menu

This commit is contained in:
jialin
2024-07-10 15:41:05 +08:00
parent f103da4178
commit 0ed7568859
25 changed files with 226 additions and 678 deletions
+3 -4
View File
@@ -21,15 +21,14 @@ export default function useContainerScroll(
scrollHeight > clientHeight + scrollTop
) {
scroller.current.current.scrollTop = scrollHeight;
toBottomFlag.current = false;
// toBottomFlag.current = false;
isWheeled.current = false;
}
if (
} else if (
!isWheeled.current &&
scrollHeight > clientHeight + scrollTop &&
scroller.current?.current
) {
scroller.current.current.scrollTop += 5;
scroller.current.current.scrollTop += 10;
window.requestAnimationFrame(scrollerRun);
}
};