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

还是第一次点击cell得点击两次的问题,大佬们有好的解决方法吗 #477

Open
liao4532234 opened this issue May 17, 2023 · 3 comments

Comments

@liao4532234
Copy link

bug提交前阅读
1.请先仔细阅读文档,尤其是【其他注意事项】文档,里面有常见问题的解决方案;
2.请先搜索已有的Issues,尝试找到相同问题的讨论;
3.请先阅读相关类的API、源码,尝试从源码找到答案;
4.如果以上步骤都未能解决你的疑问,欢迎提交ISSUE;

bug描述
请简单描述你的bug现象。

就最新版的demo,然后点击那个导航栏隐藏就可以复现,cell第一次点击事件得点击两下才行。

@CorbinLeeBest
Copy link

你好,问题解决了吗。经测试如果pinSectionHeaderVerticalOffset < headerView的高度的话,且滑动listScrollView后立即点击cell第一次没有响应。

@jason469618528
Copy link

之前有人回答说在cell上面放一个button

@CorbinLeeBest
Copy link

放button没有用,我修改了JXPageView文件的源码恢复正常了。找到setMainTableViewToMaxContentOffsetY()方法,之前设置mainTableView.contentOffset = XXX 应该有默认动画,改成set方法取消动画就可以了。
func setMainTableViewToMaxContentOffsetY() {
mainTableView.setContentOffset(CGPoint(x: 0, y: mainTableViewMaxContentOffsetY()), animated: false)
}

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

3 participants