Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unexpected ScrollNotification #856

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

LinXunFeng
Copy link
Contributor

@LinXunFeng LinXunFeng commented Aug 12, 2024

如下视频所示,点击 Grid,往上滑动一段距离,再点击返回按钮,控制台会有 NotificationListener 的相应输出

111.mov

经调试发现因 (oldMaxScrollExtent != position.maxScrollExtent && position.maxScrollExtent != 0) 成立,返回的 simulation 不为 null 而导致。

所以我将原来修复 #618 的代码进行了调整,仅在 headerfooter 指示器的状态为非 inactive 时才做相关比较

@xuelongqy
Copy link
Owner

我看这个情况只在TabBarViewPage的示例中出现,应该跟嵌套滚动有关

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants