Skip to content

fix: onResponderRelease not work when scrolling #13

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

Merged
merged 1 commit into from
Mar 15, 2017

Conversation

Jiasm
Copy link
Member

@Jiasm Jiasm commented Mar 13, 2017

View正在滑动时,我们触摸View并释放,并不会触发onResponderRelease事件,所以我将事件改为onMomentumScrollBegin
该事件会在开始惯性滚动时执行,惯性滚动的开始就意味着手动滚动的结束,所以理论上它可以替代onResponderRelease事件(^_^)v

当`View`正在滑动时,我们触摸`View`并释放,并不会触发`onResponderRelease`事件,所以我将事件改为`onMomentumScrollBegin`
该事件会在开始惯性滚动时执行,惯性滚动的开始就意味着手动滚动的结束,所以理论上它可以替代`onResponderRelease`事件(^_^)v
@cyqresig cyqresig merged commit 26efc1f into react-native-component:master Mar 15, 2017
@cyqresig
Copy link
Contributor

非常感谢你的代码提交^_^, 插件包已更新新版本

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