{"action":"opened","issue":{"url":"https://api.github.com/repos/Simon-Leeeeeeeee/SLWidget/issues/3","repository_url":"https://api.github.com/repos/Simon-Leeeeeeeee/SLWidget","labels_url":"https://api.github.com/repos/Simon-Leeeeeeeee/SLWidget/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Simon-Leeeeeeeee/SLWidget/issues/3/comments","events_url":"https://api.github.com/repos/Simon-Leeeeeeeee/SLWidget/issues/3/events","html_url":"https://github.com/Simon-Leeeeeeeee/SLWidget/issues/3","id":383968278,"node_id":"MDU6SXNzdWUzODM5NjgyNzg=","number":3,"title":"侧滑返回的距离","user":{"login":"DaneChen","id":14819199,"node_id":"MDQ6VXNlcjE0ODE5MTk5","avatar_url":"https://avatars0.githubusercontent.com/u/14819199?v=4","gravatar_id":"","url":"https://api.github.com/users/DaneChen","html_url":"https://github.com/DaneChen","followers_url":"https://api.github.com/users/DaneChen/followers","following_url":"https://api.github.com/users/DaneChen/following{/other_user}","gists_url":"https://api.github.com/users/DaneChen/gists{/gist_id}","starred_url":"https://api.github.com/users/DaneChen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaneChen/subscriptions","organizations_url":"https://api.github.com/users/DaneChen/orgs","repos_url":"https://api.github.com/users/DaneChen/repos","events_url":"https://api.github.com/users/DaneChen/events{/privacy}","received_events_url":"https://api.github.com/users/DaneChen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-24T07:49:25Z","updated_at":"2018-11-24T07:49:25Z","closed_at":null,"author_association":"NONE","body":"侧滑返回功能，目前是滑动到屏幕一半宽度触发关闭。如果要改成其他距离呢？\r\n我尝试在SwipeBackHelper中673行，修改逻辑\r\nif (mShadowView.getWidth() + 2 * mShadowView.getTranslationX() >= 0)\r\n\r\n也没什么效果，发现mShadowView.getTranslationX()要么为0，要么是 **负**的屏幕最大宽度\r\n应该是在动画中已经决定了这个值。\r\n然后在startSwipeAnimator中记录startValue值，再673行中与屏幕相比，是可以触发关闭，但是关闭的动画上存在问题。\r\n期待回复~~\r\n"}}
{"actor":{"display_login":"DaneChen"}}