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

ObserverController.isHandlingScroll 不起作用,被innerReset了, #7

Closed
xiaodogaa opened this issue Aug 5, 2022 · 3 comments
Closed

Comments

@xiaodogaa
Copy link

建议isHandlingScroll为true时,使用 ScrollEndNotification

@LinXunFeng
Copy link
Member

没明白你的问题点是什么,isHandlingScroll 是内部控制是否进行数据处理和触发 onObserve 这类回调的,外部不应该对其赋值

@xiaodogaa
Copy link
Author

/// A flag used to ignore unnecessary calculations during scrolling.
bool isHandlingScroll = false;
我看属性是用来 忽略滑动期间的不必要计算,提升性能的;以为设置为true 就可以达到 只有在滑动结束 才触发 onObserve 回调

@LinXunFeng
Copy link
Member

好吧,我后面改为get方法以避免误用,感谢反馈

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

No branches or pull requests

2 participants