footer.triggerAutomaticallyRefreshPercent小于1时,偶尔会同时触发下拉刷新和加载更多#1328
Open
chicwx wants to merge 1 commit intoCoderMJLee:masterfrom
Open
footer.triggerAutomaticallyRefreshPercent小于1时,偶尔会同时触发下拉刷新和加载更多#1328chicwx wants to merge 1 commit intoCoderMJLee:masterfrom
chicwx wants to merge 1 commit intoCoderMJLee:masterfrom
Conversation
|
赞一个,我目前就出现这种情况了,下拉刷新同时调用了header和footer的方法 |
|
如果你的值是-20或者更多 只要一下拉肯定会触发的, 只能加个标志位,第一个请求没有结束 另外一个请求就直接return掉 不然弱网情况下会突然请求到两页的数据 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
当数据较少且footer.triggerAutomaticallyRefreshPercent小于1时,进行下拉刷新操作会同时触发“下拉刷新”和“加载更多”两个动作