{"action":"created","comment":{"url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/comments/67290904","id":67290904,"diff_hunk":"@@ -106,11 +106,35 @@ public float getCurrentZoom(){\n \n     @Override\n     public boolean onTouchEvent(MotionEvent event) {\n-        return super.onTouchEvent(event);\n+        mGestureDetector.onTouchEvent(event);\n+        return true;\n     }\n \n-    private class GestureListener extends GestureDetector.SimpleOnGestureListener {\n+    private final class GestureListener extends GestureDetector.SimpleOnGestureListener {\n \n+        private static final int SWIPE_THRESHOLD = 100;\n+        private static final int SWIPE_VELOCITY_THRESHOLD = 100;\n+\n+        private String mSwipeDirection;","path":"swipeview/src/main/java/kz/kolesa/swipeview/widgets/PhotoView.java","position":35,"original_position":35,"commit_id":"8d386b7ce652e1459d6eeb8eaf5539f49cf10d3d","original_commit_id":"8d386b7ce652e1459d6eeb8eaf5539f49cf10d3d","user":{"login":"janibekmarshal","id":19899058,"avatar_url":"https://avatars.githubusercontent.com/u/19899058?v=3","gravatar_id":"","url":"https://api.github.com/users/janibekmarshal","html_url":"https://github.com/janibekmarshal","followers_url":"https://api.github.com/users/janibekmarshal/followers","following_url":"https://api.github.com/users/janibekmarshal/following{/other_user}","gists_url":"https://api.github.com/users/janibekmarshal/gists{/gist_id}","starred_url":"https://api.github.com/users/janibekmarshal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janibekmarshal/subscriptions","organizations_url":"https://api.github.com/users/janibekmarshal/orgs","repos_url":"https://api.github.com/users/janibekmarshal/repos","events_url":"https://api.github.com/users/janibekmarshal/events{/privacy}","received_events_url":"https://api.github.com/users/janibekmarshal/received_events","type":"User","site_admin":false},"body":"Будет проще сравнивать, если вместо String будет enum или допустим IntDef\r\nПочитай про аннотацию IntDef - https://developer.android.com/reference/android/support/annotation/IntDef.html","created_at":"2016-06-16T05:58:59Z","updated_at":"2016-06-16T05:58:59Z","html_url":"https://github.com/kolesakrishamarket/SwipeGesture/pull/4#discussion_r67290904","pull_request_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/comments/67290904"},"html":{"href":"https://github.com/kolesakrishamarket/SwipeGesture/pull/4#discussion_r67290904"},"pull_request":{"href":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/4","id":74025783,"html_url":"https://github.com/kolesakrishamarket/SwipeGesture/pull/4","diff_url":"https://github.com/kolesakrishamarket/SwipeGesture/pull/4.diff","patch_url":"https://github.com/kolesakrishamarket/SwipeGesture/pull/4.patch","issue_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/issues/4","number":4,"state":"open","locked":false,"title":"Swipe detection","user":{"login":"mukhamedissa","id":16745872,"avatar_url":"https://avatars.githubusercontent.com/u/16745872?v=3","gravatar_id":"","url":"https://api.github.com/users/mukhamedissa","html_url":"https://github.com/mukhamedissa","followers_url":"https://api.github.com/users/mukhamedissa/followers","following_url":"https://api.github.com/users/mukhamedissa/following{/other_user}","gists_url":"https://api.github.com/users/mukhamedissa/gists{/gist_id}","starred_url":"https://api.github.com/users/mukhamedissa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mukhamedissa/subscriptions","organizations_url":"https://api.github.com/users/mukhamedissa/orgs","repos_url":"https://api.github.com/users/mukhamedissa/repos","events_url":"https://api.github.com/users/mukhamedissa/events{/privacy}","received_events_url":"https://api.github.com/users/mukhamedissa/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-16T05:54:53Z","updated_at":"2016-06-16T05:58:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"440d5883bdecaae86dffc488c25ee00462a1414e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/4/commits","review_comments_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/4/comments","review_comment_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/issues/4/comments","statuses_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/statuses/8d386b7ce652e1459d6eeb8eaf5539f49cf10d3d","head":{"label":"kolesakrishamarket:swipedetection","ref":"swipedetection","sha":"8d386b7ce652e1459d6eeb8eaf5539f49cf10d3d","user":{"login":"kolesakrishamarket","id":19899078,"avatar_url":"https://avatars.githubusercontent.com/u/19899078?v=3","gravatar_id":"","url":"https://api.github.com/users/kolesakrishamarket","html_url":"https://github.com/kolesakrishamarket","followers_url":"https://api.github.com/users/kolesakrishamarket/followers","following_url":"https://api.github.com/users/kolesakrishamarket/following{/other_user}","gists_url":"https://api.github.com/users/kolesakrishamarket/gists{/gist_id}","starred_url":"https://api.github.com/users/kolesakrishamarket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolesakrishamarket/subscriptions","organizations_url":"https://api.github.com/users/kolesakrishamarket/orgs","repos_url":"https://api.github.com/users/kolesakrishamarket/repos","events_url":"https://api.github.com/users/kolesakrishamarket/events{/privacy}","received_events_url":"https://api.github.com/users/kolesakrishamarket/received_events","type":"Organization","site_admin":false},"repo":{"id":61195290,"name":"SwipeGesture","full_name":"kolesakrishamarket/SwipeGesture","owner":{"login":"kolesakrishamarket","id":19899078,"avatar_url":"https://avatars.githubusercontent.com/u/19899078?v=3","gravatar_id":"","url":"https://api.github.com/users/kolesakrishamarket","html_url":"https://github.com/kolesakrishamarket","followers_url":"https://api.github.com/users/kolesakrishamarket/followers","following_url":"https://api.github.com/users/kolesakrishamarket/following{/other_user}","gists_url":"https://api.github.com/users/kolesakrishamarket/gists{/gist_id}","starred_url":"https://api.github.com/users/kolesakrishamarket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolesakrishamarket/subscriptions","organizations_url":"https://api.github.com/users/kolesakrishamarket/orgs","repos_url":"https://api.github.com/users/kolesakrishamarket/repos","events_url":"https://api.github.com/users/kolesakrishamarket/events{/privacy}","received_events_url":"https://api.github.com/users/kolesakrishamarket/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kolesakrishamarket/SwipeGesture","description":"","fork":false,"url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture","forks_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/forks","keys_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/teams","hooks_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/hooks","issue_events_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/issues/events{/number}","events_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/events","assignees_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/assignees{/user}","branches_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/branches{/branch}","tags_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/tags","blobs_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/git/refs{/sha}","trees_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/statuses/{sha}","languages_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/languages","stargazers_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/stargazers","contributors_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/contributors","subscribers_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/subscribers","subscription_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/subscription","commits_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/commits{/sha}","git_commits_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/git/commits{/sha}","comments_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/comments{/number}","issue_comment_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/issues/comments{/number}","contents_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/contents/{+path}","compare_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/merges","archive_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/downloads","issues_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/issues{/number}","pulls_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls{/number}","milestones_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/milestones{/number}","notifications_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/labels{/name}","releases_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/releases{/id}","deployments_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/deployments","created_at":"2016-06-15T09:26:05Z","updated_at":"2016-06-15T09:31:51Z","pushed_at":"2016-06-16T05:54:53Z","git_url":"git://github.com/kolesakrishamarket/SwipeGesture.git","ssh_url":"git@github.com:kolesakrishamarket/SwipeGesture.git","clone_url":"https://github.com/kolesakrishamarket/SwipeGesture.git","svn_url":"https://github.com/kolesakrishamarket/SwipeGesture","homepage":null,"size":735,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"kolesakrishamarket:develop","ref":"develop","sha":"48468fa22eb86765dfc5624f3ce42ea8270cbcdc","user":{"login":"kolesakrishamarket","id":19899078,"avatar_url":"https://avatars.githubusercontent.com/u/19899078?v=3","gravatar_id":"","url":"https://api.github.com/users/kolesakrishamarket","html_url":"https://github.com/kolesakrishamarket","followers_url":"https://api.github.com/users/kolesakrishamarket/followers","following_url":"https://api.github.com/users/kolesakrishamarket/following{/other_user}","gists_url":"https://api.github.com/users/kolesakrishamarket/gists{/gist_id}","starred_url":"https://api.github.com/users/kolesakrishamarket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolesakrishamarket/subscriptions","organizations_url":"https://api.github.com/users/kolesakrishamarket/orgs","repos_url":"https://api.github.com/users/kolesakrishamarket/repos","events_url":"https://api.github.com/users/kolesakrishamarket/events{/privacy}","received_events_url":"https://api.github.com/users/kolesakrishamarket/received_events","type":"Organization","site_admin":false},"repo":{"id":61195290,"name":"SwipeGesture","full_name":"kolesakrishamarket/SwipeGesture","owner":{"login":"kolesakrishamarket","id":19899078,"avatar_url":"https://avatars.githubusercontent.com/u/19899078?v=3","gravatar_id":"","url":"https://api.github.com/users/kolesakrishamarket","html_url":"https://github.com/kolesakrishamarket","followers_url":"https://api.github.com/users/kolesakrishamarket/followers","following_url":"https://api.github.com/users/kolesakrishamarket/following{/other_user}","gists_url":"https://api.github.com/users/kolesakrishamarket/gists{/gist_id}","starred_url":"https://api.github.com/users/kolesakrishamarket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolesakrishamarket/subscriptions","organizations_url":"https://api.github.com/users/kolesakrishamarket/orgs","repos_url":"https://api.github.com/users/kolesakrishamarket/repos","events_url":"https://api.github.com/users/kolesakrishamarket/events{/privacy}","received_events_url":"https://api.github.com/users/kolesakrishamarket/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kolesakrishamarket/SwipeGesture","description":"","fork":false,"url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture","forks_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/forks","keys_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/teams","hooks_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/hooks","issue_events_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/issues/events{/number}","events_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/events","assignees_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/assignees{/user}","branches_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/branches{/branch}","tags_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/tags","blobs_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/git/refs{/sha}","trees_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/statuses/{sha}","languages_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/languages","stargazers_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/stargazers","contributors_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/contributors","subscribers_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/subscribers","subscription_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/subscription","commits_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/commits{/sha}","git_commits_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/git/commits{/sha}","comments_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/comments{/number}","issue_comment_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/issues/comments{/number}","contents_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/contents/{+path}","compare_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/merges","archive_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/downloads","issues_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/issues{/number}","pulls_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls{/number}","milestones_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/milestones{/number}","notifications_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/labels{/name}","releases_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/releases{/id}","deployments_url":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/deployments","created_at":"2016-06-15T09:26:05Z","updated_at":"2016-06-15T09:31:51Z","pushed_at":"2016-06-16T05:54:53Z","git_url":"git://github.com/kolesakrishamarket/SwipeGesture.git","ssh_url":"git@github.com:kolesakrishamarket/SwipeGesture.git","clone_url":"https://github.com/kolesakrishamarket/SwipeGesture.git","svn_url":"https://github.com/kolesakrishamarket/SwipeGesture","homepage":null,"size":735,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/4"},"html":{"href":"https://github.com/kolesakrishamarket/SwipeGesture/pull/4"},"issue":{"href":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/issues/4"},"comments":{"href":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/kolesakrishamarket/SwipeGesture/statuses/8d386b7ce652e1459d6eeb8eaf5539f49cf10d3d"}}}}
{"actor":{"display_login":"janibekmarshal"}}