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

某些情况无法侧滑返回 #1

Closed
lbw718733550 opened this issue Jan 7, 2019 · 3 comments
Closed

某些情况无法侧滑返回 #1

lbw718733550 opened this issue Jan 7, 2019 · 3 comments

Comments

@lbw718733550
Copy link

在界面有 recycleView 和 scrollView , 地图, 等情况下无法显示侧滑ui 和侧滑返回,应该是被拦截了

@ParfoisMeng
Copy link
Owner

可能吧。
我晚上下班后看看,排查一下。
感谢反馈。

@ParfoisMeng
Copy link
Owner

@lbw718733550
最近项目略忙。今晚抽空看了下,是滑动冲突的问题。事件被消费没到decorView的OnTouch。
试了一下,自定义相关可滑动控件可以解决此问题,但这并不是一个良好的解决方案。NestedScrolling也许是个办法,我准备过两天有空研究一下。现在就先休息了。

如果您有什么解决方案,十分欢迎PR。

@ParfoisMeng
Copy link
Owner

ParfoisMeng commented Jan 10, 2019

请更新1.0.3

解决方案简述:
注册方法加了个haveScroll,如果为true则将原根布局抽出来,套上一层处理滑动冲突的Layout再塞回去。
处理滑动冲突的Layout:SlideBackInterceptLayout

PS:感觉此方式不是十分理想(市面上好像都是这么解决的),但目前没有更好的思路。如果您有什么想法,请与我沟通,十分欢迎PR。

@ParfoisMeng ParfoisMeng added bug Something isn't working enhancement New feature or request and removed bug Something isn't working enhancement New feature or request labels Jan 11, 2019
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