{"action":"created","issue":{"url":"https://api.github.com/repos/liaohuqiu/android-Ultra-Pull-To-Refresh/issues/91","labels_url":"https://api.github.com/repos/liaohuqiu/android-Ultra-Pull-To-Refresh/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/liaohuqiu/android-Ultra-Pull-To-Refresh/issues/91/comments","events_url":"https://api.github.com/repos/liaohuqiu/android-Ultra-Pull-To-Refresh/issues/91/events","html_url":"https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh/issues/91","id":84172605,"number":91,"title":"RentalsSunHeaderView与disableWhenHorizontalMove有冲突","user":{"login":"leasontou","id":5138576,"avatar_url":"https://avatars.githubusercontent.com/u/5138576?v=3","gravatar_id":"","url":"https://api.github.com/users/leasontou","html_url":"https://github.com/leasontou","followers_url":"https://api.github.com/users/leasontou/followers","following_url":"https://api.github.com/users/leasontou/following{/other_user}","gists_url":"https://api.github.com/users/leasontou/gists{/gist_id}","starred_url":"https://api.github.com/users/leasontou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leasontou/subscriptions","organizations_url":"https://api.github.com/users/leasontou/orgs","repos_url":"https://api.github.com/users/leasontou/repos","events_url":"https://api.github.com/users/leasontou/events{/privacy}","received_events_url":"https://api.github.com/users/leasontou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-02T19:33:54Z","updated_at":"2015-06-03T03:42:42Z","closed_at":null,"body":"设置disableWhenHorizontalMove后RentalsSunHeaderView的下拉不能正常使用了，不管怎么往下滑都没没反应，header下拉不出来\r\n\r\n代码\r\nptrFrameLayout = (PtrFrameLayout) view.findViewById(R.id.ptr_frame);\r\nptrFrameLayout.disableWhenHorizontalMove(true);\r\nfinal RentalsSunHeaderView header = new RentalsSunHeaderView(getActivity());\r\nheader.setLayoutParams(new PtrFrameLayout.LayoutParams(-1, -2));\r\nheader.setPadding(0, DisplayUtil.dip2px(15), 0, DisplayUtil.dip2px(10));\r\nheader.setUp(ptrFrameLayout);\r\n\r\nptrFrameLayout.setHeaderView(header);\r\nptrFrameLayout.addPtrUIHandler(header);"},"comment":{"url":"https://api.github.com/repos/liaohuqiu/android-Ultra-Pull-To-Refresh/issues/comments/108179283","html_url":"https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh/issues/91#issuecomment-108179283","issue_url":"https://api.github.com/repos/liaohuqiu/android-Ultra-Pull-To-Refresh/issues/91","id":108179283,"user":{"login":"leasontou","id":5138576,"avatar_url":"https://avatars.githubusercontent.com/u/5138576?v=3","gravatar_id":"","url":"https://api.github.com/users/leasontou","html_url":"https://github.com/leasontou","followers_url":"https://api.github.com/users/leasontou/followers","following_url":"https://api.github.com/users/leasontou/following{/other_user}","gists_url":"https://api.github.com/users/leasontou/gists{/gist_id}","starred_url":"https://api.github.com/users/leasontou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leasontou/subscriptions","organizations_url":"https://api.github.com/users/leasontou/orgs","repos_url":"https://api.github.com/users/leasontou/repos","events_url":"https://api.github.com/users/leasontou/events{/privacy}","received_events_url":"https://api.github.com/users/leasontou/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T03:42:42Z","updated_at":"2015-06-03T03:42:42Z","body":"        ptrFrameLayout.setPtrHandler(new PtrHandler() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onRefreshBegin(PtrFrameLayout frame) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean checkCanDoRefresh(PtrFrameLayout frame, View content,\r\n\t\t\t\t\tView header) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t});\r\n就算我把这个设置成一直可以下拉也没作用，\r\n我调试了下，在PtrFrameLayout的dispatchTouchEvent中，MotionEvent.ACTION_MOVE里那个offsetX值一直很大，offsetY值很小，导致把我的手势错误判断为横向滑动。"}}