mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-03 14:20:50 +08:00
fix(ui): 优化搜索结果滚动加载触发距离 150px → 100px (M-UI-06)
This commit is contained in:
@@ -454,7 +454,7 @@ const handleTypeChange = (type: number) => {
|
||||
|
||||
const handleScroll = (e: any) => {
|
||||
const { scrollTop, scrollHeight, clientHeight } = e.target;
|
||||
if (scrollTop + clientHeight >= scrollHeight - 150 && !isLoadingMore.value && hasMore.value) {
|
||||
if (scrollTop + clientHeight >= scrollHeight - 100 && !isLoadingMore.value && hasMore.value) {
|
||||
loadSearch(true);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user