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

ViewPager+DragPhotoView左右滑动冲突问题 #7

Open
payneHwang opened this issue Sep 11, 2019 · 1 comment
Open

ViewPager+DragPhotoView左右滑动冲突问题 #7

payneHwang opened this issue Sep 11, 2019 · 1 comment

Comments

@payneHwang
Copy link

ViewPager+DragPhotoView嵌套时,
手势方向为向下斜滑的情况下(xDiff<yDiff)的时候也会触发onActionMove使图片缩放的动作;
目前想优化下实现微信的那种手势处理:
DragPhotoView只响应竖直方向的手势(向上、向下可以触发缩放退出),其他方向手势(向左、向右、斜下方向、斜上方向)都是触发ViewPager的翻页滑动...
大神求指导一下~~

@MrWangChong
Copy link
Owner

不好意思,工作原因,有一段时间没看github,鉴于你这类需求比较少见,建议把源码下载下来自己改一下事件分发,优先判断xDiff 到一定值就不做后面的操作。

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