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

列表内item点击失效 #79

Open
xilin0923 opened this issue Oct 18, 2021 · 7 comments
Open

列表内item点击失效 #79

xilin0923 opened this issue Oct 18, 2021 · 7 comments

Comments

@xilin0923
Copy link

最近发现项目里使用largeList组件的列表,在按住屏幕不放后上下滑动后,列表内item点击事件失效。
发现3.0.2版本为了修复#75 增加了以下代码:
onStartShouldSetResponderCapture={() => this._dragging}
部分场景中this._dragging没有被重置成flase导致子视图无法响应touch事件,将版本后退至3.0.1-rc.5,问题解决。

@bolan9999
Copy link
Owner

😅

@bolan9999
Copy link
Owner

可以描述一下是如何操作会无法重置吗?

@xilin0923
Copy link
Author

_onMomentumScrollEnd = () => { this._touching = false; this._dragging = false; this._beginIndicatorDismissAnimation(); this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(); };

按住屏幕不放先往上滑再往下滑,看上去是根本没触发onMomentumScrollEnd,iOS和android均有该问题。

@bolan9999
Copy link
Owner

你先退回去吧,最近在搞一个全新的版本,短期内不一定会有时间修复

@Misaka-0x447f
Copy link

#94 已提交补丁。

@wangzeshen
Copy link

为啥我换哪个版本都不行。。RN0.67最新版

@wangzeshen
Copy link

为啥我换哪个版本都不行。。RN0.67最新版

懒得拖出来。。。重写了_onScrollEndDrag再调用一次_onMomentumScrollEnd

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

4 participants