fix: 楼中楼评论请求重复 #284

This commit is contained in:
guozhigq
2024-03-08 00:03:34 +08:00
parent ab24da5f55
commit 3bf6136bc6
2 changed files with 6 additions and 17 deletions

View File

@ -54,7 +54,8 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
() {
if (scrollController.position.pixels >=
scrollController.position.maxScrollExtent - 300) {
EasyThrottle.throttle('replylist', const Duration(seconds: 2), () {
EasyThrottle.throttle('replylist', const Duration(milliseconds: 200),
() {
_videoReplyReplyController.queryReplyList(type: 'onLoad');
});
}