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

遵循JXPagingViewListViewDelegate协议的view,无法响应collectionview的代理方法 collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) #244

Closed
yly6518 opened this issue Apr 11, 2024 · 0 comments

Comments

@yly6518
Copy link

yly6518 commented Apr 11, 2024

当遵循JXPagingViewListViewDelegate协议返回的view是collectionview,并且设置了isPagingEnabled = true,会导致上划cell,在header吸顶之后,collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) 代理方法无法响应第一次点击事件。同时,只要header一直处于吸附状态,上划collectionview,所有出现的cell都无法响应第一次点击事件。

不设置isPagingEnabled = true 则正常。
Demo工程中已复现,将PagingListBaseView中的tableview替换成collectionview,并设置了isPagingEnabled = true,必定复现。

1
图1,header未吸顶,点击item0,触发didSelectItemAt代理
2
图2,上划collectionview, header吸顶,点击item0,没有触发didSelectItemAt代理,再次点击,触发。
3
图3,继续上划collectionview,header处于吸顶状态,点击item1,没有触发didSelectItemAt代理,再次点击,触发。

@yly6518 yly6518 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2024
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

1 participant