Skip to content

发现一个大BUG,描述如下 #415

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

Closed
douya40 opened this issue Jul 7, 2017 · 9 comments
Closed

发现一个大BUG,描述如下 #415

douya40 opened this issue Jul 7, 2017 · 9 comments

Comments

@douya40
Copy link

douya40 commented Jul 7, 2017

二个页面进行跳转,在第一个页面的点击事件,在第二个页面的与第一个页面相同位置点击依然有效

@YoKeyword
Copy link
Owner

YoKeyword commented Jul 7, 2017

用的什么版本呢? v1.x的 Demo里对这个问题自测过,除非动画时间设置有问题,应该不会出现该问题了

v0.10.4, v0.10.5版本在使用popTo(fragment,boolean,runnable)时快速点击可能会发生该问题,其他版本都是通过getView().setClickable(true)专门做了处理的,v1.0.x对该问题做了更智能的处理

除非上个Fragment的离场动画时间 > 下一个Fragment的转场动画时间,这种情况是使用问题, 因为上个Fragment没有及时hide,导致点击时,可以穿透点击

@Mrxxy
Copy link

Mrxxy commented Jul 10, 2017

同样的问题,我也遇到了,版本是v1.0.5,具体描述就是 必现A->B,在B界面空白处点击会触发A界面的点击事件,跳到C,升级到v1.0.6后问题依然存在,之前使用版本v0.10.1未出现此问题

@YoKeyword
Copy link
Owner

@Mrxxy 1.0之前是通过在onActivityCreated()里设置 getView().setClickable(true)来避免穿透点击的

1.0之后依旧会设置 getView().setClickable(true),但是在Fragment入场结束后会复原Clickable,这样的话理论上 除非上个Fragment的离场动画时间 大于 下一个Fragment的转场动画时间, 否则应该不会出现穿透点击问题。

你的场景下是否 A的popExitAnim时间 > B的enterAnim时间呢? 我这边Demo无法复现,如果确实还有问题,还是不能把clickable复原...

@Mrxxy
Copy link

Mrxxy commented Jul 10, 2017

@YoKeyword 使用动画为默认动画,之前一直使用0.10.1和0.10.3,前几天升级到1.0.5后才发现这个问题

@YoKeyword
Copy link
Owner

@Mrxxy 好的,感谢反馈, 如果和动画时间没关系的话,可能存在兼容问题, 下个版本还是不复原clickable了

@Mrxxy
Copy link

Mrxxy commented Jul 10, 2017

@YoKeyword 十分感谢

@YoKeyword
Copy link
Owner

@douya40 @Mrxxy v1.0.7已放出,不再复原clickable 🍺 :)

@douya40
Copy link
Author

douya40 commented Jul 11, 2017

好的。我们测试下。谢谢

@Mrxxy
Copy link

Mrxxy commented Jul 11, 2017

已修复 @YoKeyword

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