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

Demo双击暂停、播放无效 #402

Closed
SMask opened this issue Aug 28, 2017 · 10 comments
Closed

Demo双击暂停、播放无效 #402

SMask opened this issue Aug 28, 2017 · 10 comments

Comments

@SMask
Copy link

SMask commented Aug 28, 2017

Android 5.0.2 红米Note2
Demo双击暂停、播放无效

@CarGuo
Copy link
Owner

CarGuo commented Aug 28, 2017

哪个页面?双击只有在已经播放才会生效

@SMask
Copy link
Author

SMask commented Aug 28, 2017

任意一个界面
首先,播放按钮、进度条、全屏按钮等等,这几个先叫做 “控制界面” 吧;
那么当控制界面显示的时候双击暂停、播放都是正常的;
但是当控制界面隐藏的时候,那么双击暂停、播放好像就有问题了。。。
不知道这样说 明不明白 = =

@CarGuo
Copy link
Owner

CarGuo commented Aug 28, 2017

了解了,是在控制层消失的时候,双击有问题了!

@SMask
Copy link
Author

SMask commented Aug 28, 2017

对头就是双击播放/暂停 和 单击显示/隐藏控制层 应该相互独立互不干扰

@CarGuo
Copy link
Owner

CarGuo commented Aug 28, 2017

嗯嗯,下个版本更新

@CarGuo
Copy link
Owner

CarGuo commented Aug 31, 2017

2.0.6更新

@SMask
Copy link
Author

SMask commented Sep 1, 2017

现在双击的时候,控制层会闪现一下
应该是也触发单击事件了吧 = =
看代码双击换成 GestureDetector 的 onDoubleTap了
那么单击也换成 GestureDetector 的 onSingleTapConfirmed 吧
这样单击和双击就不会冲突了- -

@CarGuo
Copy link
Owner

CarGuo commented Sep 1, 2017

单击那一块的逻辑还有有点麻烦和其他问题,需要后面在撸一撸。

@SMask
Copy link
Author

SMask commented Sep 1, 2017

原来如此 干巴爹

@CarGuo CarGuo closed this as completed Oct 16, 2017
@MichaelJokAr
Copy link

双击与单击事件的冲突还是没有解决呀

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