fix: unexpected ScrollNotification #856
Open
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.
如下视频所示,点击
Grid,往上滑动一段距离,再点击返回按钮,控制台会有NotificationListener的相应输出111.mov
经调试发现因
(oldMaxScrollExtent != position.maxScrollExtent && position.maxScrollExtent != 0)成立,返回的simulation不为null而导致。所以我将原来修复 #618 的代码进行了调整,仅在
header或footer指示器的状态为非inactive时才做相关比较