-
Notifications
You must be signed in to change notification settings - Fork 5
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
找到个bug, #3
Comments
internal fun findViewParentIfNeeds(tag: View, depth: Int): ViewGroup? { 上面的接口这一行应该加return: 另外再手动赞一下~ |
发现在我这里有这个问题:在webview中,手指按下横向滑动,这个时候表现正常,但是继续纵向滑动(也就是说在同一次ACTION_DOWN事件中)时,父容器会响应这个事件,导致用户总是会误触发父容器的纵向滑动事件。 以下是我的最终代码:
|
MyWebView
//增加最大递归深度判断,防止出现ANR或者异常
return findViewParentIfNeeds(parent, depth-1)
应该加个 return 不然会回调到第一次递归执行,最后的 return null
实际效果确实不错,感谢!!
The text was updated successfully, but these errors were encountered: