{"action":"opened","number":64,"pull_request":{"url":"https://api.github.com/repos/Stereobit/dragend/pulls/64","id":34586677,"html_url":"https://github.com/Stereobit/dragend/pull/64","diff_url":"https://github.com/Stereobit/dragend/pull/64.diff","patch_url":"https://github.com/Stereobit/dragend/pull/64.patch","issue_url":"https://api.github.com/repos/Stereobit/dragend/issues/64","number":64,"state":"open","locked":false,"title":"Add direction to onSwipeStart callback so one can predict the target page","user":{"login":"hashworks","id":2362091,"avatar_url":"https://avatars.githubusercontent.com/u/2362091?v=3","gravatar_id":"","url":"https://api.github.com/users/hashworks","html_url":"https://github.com/hashworks","followers_url":"https://api.github.com/users/hashworks/followers","following_url":"https://api.github.com/users/hashworks/following{/other_user}","gists_url":"https://api.github.com/users/hashworks/gists{/gist_id}","starred_url":"https://api.github.com/users/hashworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashworks/subscriptions","organizations_url":"https://api.github.com/users/hashworks/orgs","repos_url":"https://api.github.com/users/hashworks/repos","events_url":"https://api.github.com/users/hashworks/events{/privacy}","received_events_url":"https://api.github.com/users/hashworks/received_events","type":"User","site_admin":false},"body":"This way I can do\r\n```js\r\nvar dragend = new Dragend(document.getElementById('content'), {\r\n\t'onSwipeStart': function(container, activeElement, page, direction) {\r\n\t\tif (direction == 'left' || direction == 'down') {\r\n\t\t\tpage = page + 1;\r\n\t\t} else if (direction == 'right' || direction == 'up') {\r\n\t\t\tpage = page - 1;\r\n\t\t} else {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdoSomethingToTargetPage(page);\r\n\t}\r\n});\r\n```","created_at":"2015-05-02T14:51:37Z","updated_at":"2015-05-02T14:51:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df9c652c909a89fab2b6b6da832b941a978eb145","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Stereobit/dragend/pulls/64/commits","review_comments_url":"https://api.github.com/repos/Stereobit/dragend/pulls/64/comments","review_comment_url":"https://api.github.com/repos/Stereobit/dragend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Stereobit/dragend/issues/64/comments","statuses_url":"https://api.github.com/repos/Stereobit/dragend/statuses/aa6ec41e9a75ec3757e791b0a164048ad99b32ed","head":{"label":"hashworks:feature/addDirectionToOnSwipeStart","ref":"feature/addDirectionToOnSwipeStart","sha":"aa6ec41e9a75ec3757e791b0a164048ad99b32ed","user":{"login":"hashworks","id":2362091,"avatar_url":"https://avatars.githubusercontent.com/u/2362091?v=3","gravatar_id":"","url":"https://api.github.com/users/hashworks","html_url":"https://github.com/hashworks","followers_url":"https://api.github.com/users/hashworks/followers","following_url":"https://api.github.com/users/hashworks/following{/other_user}","gists_url":"https://api.github.com/users/hashworks/gists{/gist_id}","starred_url":"https://api.github.com/users/hashworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashworks/subscriptions","organizations_url":"https://api.github.com/users/hashworks/orgs","repos_url":"https://api.github.com/users/hashworks/repos","events_url":"https://api.github.com/users/hashworks/events{/privacy}","received_events_url":"https://api.github.com/users/hashworks/received_events","type":"User","site_admin":false},"repo":{"id":34949282,"name":"dragend","full_name":"hashworks/dragend","owner":{"login":"hashworks","id":2362091,"avatar_url":"https://avatars.githubusercontent.com/u/2362091?v=3","gravatar_id":"","url":"https://api.github.com/users/hashworks","html_url":"https://github.com/hashworks","followers_url":"https://api.github.com/users/hashworks/followers","following_url":"https://api.github.com/users/hashworks/following{/other_user}","gists_url":"https://api.github.com/users/hashworks/gists{/gist_id}","starred_url":"https://api.github.com/users/hashworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashworks/subscriptions","organizations_url":"https://api.github.com/users/hashworks/orgs","repos_url":"https://api.github.com/users/hashworks/repos","events_url":"https://api.github.com/users/hashworks/events{/privacy}","received_events_url":"https://api.github.com/users/hashworks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hashworks/dragend","description":"dragend JS – a touch ready, full responsive, content swipe script","fork":true,"url":"https://api.github.com/repos/hashworks/dragend","forks_url":"https://api.github.com/repos/hashworks/dragend/forks","keys_url":"https://api.github.com/repos/hashworks/dragend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashworks/dragend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashworks/dragend/teams","hooks_url":"https://api.github.com/repos/hashworks/dragend/hooks","issue_events_url":"https://api.github.com/repos/hashworks/dragend/issues/events{/number}","events_url":"https://api.github.com/repos/hashworks/dragend/events","assignees_url":"https://api.github.com/repos/hashworks/dragend/assignees{/user}","branches_url":"https://api.github.com/repos/hashworks/dragend/branches{/branch}","tags_url":"https://api.github.com/repos/hashworks/dragend/tags","blobs_url":"https://api.github.com/repos/hashworks/dragend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashworks/dragend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashworks/dragend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashworks/dragend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashworks/dragend/statuses/{sha}","languages_url":"https://api.github.com/repos/hashworks/dragend/languages","stargazers_url":"https://api.github.com/repos/hashworks/dragend/stargazers","contributors_url":"https://api.github.com/repos/hashworks/dragend/contributors","subscribers_url":"https://api.github.com/repos/hashworks/dragend/subscribers","subscription_url":"https://api.github.com/repos/hashworks/dragend/subscription","commits_url":"https://api.github.com/repos/hashworks/dragend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashworks/dragend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashworks/dragend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashworks/dragend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashworks/dragend/contents/{+path}","compare_url":"https://api.github.com/repos/hashworks/dragend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashworks/dragend/merges","archive_url":"https://api.github.com/repos/hashworks/dragend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashworks/dragend/downloads","issues_url":"https://api.github.com/repos/hashworks/dragend/issues{/number}","pulls_url":"https://api.github.com/repos/hashworks/dragend/pulls{/number}","milestones_url":"https://api.github.com/repos/hashworks/dragend/milestones{/number}","notifications_url":"https://api.github.com/repos/hashworks/dragend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashworks/dragend/labels{/name}","releases_url":"https://api.github.com/repos/hashworks/dragend/releases{/id}","created_at":"2015-05-02T13:45:27Z","updated_at":"2015-05-02T14:22:33Z","pushed_at":"2015-05-02T14:50:08Z","git_url":"git://github.com/hashworks/dragend.git","ssh_url":"git@github.com:hashworks/dragend.git","clone_url":"https://github.com/hashworks/dragend.git","svn_url":"https://github.com/hashworks/dragend","homepage":"http://stereobit.github.com/dragend/","size":1438,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Stereobit:master","ref":"master","sha":"78e17b79c610ac847eb3d8509edc7a2ede317d19","user":{"login":"Stereobit","id":150493,"avatar_url":"https://avatars.githubusercontent.com/u/150493?v=3","gravatar_id":"","url":"https://api.github.com/users/Stereobit","html_url":"https://github.com/Stereobit","followers_url":"https://api.github.com/users/Stereobit/followers","following_url":"https://api.github.com/users/Stereobit/following{/other_user}","gists_url":"https://api.github.com/users/Stereobit/gists{/gist_id}","starred_url":"https://api.github.com/users/Stereobit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stereobit/subscriptions","organizations_url":"https://api.github.com/users/Stereobit/orgs","repos_url":"https://api.github.com/users/Stereobit/repos","events_url":"https://api.github.com/users/Stereobit/events{/privacy}","received_events_url":"https://api.github.com/users/Stereobit/received_events","type":"User","site_admin":false},"repo":{"id":5294540,"name":"dragend","full_name":"Stereobit/dragend","owner":{"login":"Stereobit","id":150493,"avatar_url":"https://avatars.githubusercontent.com/u/150493?v=3","gravatar_id":"","url":"https://api.github.com/users/Stereobit","html_url":"https://github.com/Stereobit","followers_url":"https://api.github.com/users/Stereobit/followers","following_url":"https://api.github.com/users/Stereobit/following{/other_user}","gists_url":"https://api.github.com/users/Stereobit/gists{/gist_id}","starred_url":"https://api.github.com/users/Stereobit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stereobit/subscriptions","organizations_url":"https://api.github.com/users/Stereobit/orgs","repos_url":"https://api.github.com/users/Stereobit/repos","events_url":"https://api.github.com/users/Stereobit/events{/privacy}","received_events_url":"https://api.github.com/users/Stereobit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stereobit/dragend","description":"dragend JS – a touch ready, full responsive, content swipe script","fork":false,"url":"https://api.github.com/repos/Stereobit/dragend","forks_url":"https://api.github.com/repos/Stereobit/dragend/forks","keys_url":"https://api.github.com/repos/Stereobit/dragend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stereobit/dragend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stereobit/dragend/teams","hooks_url":"https://api.github.com/repos/Stereobit/dragend/hooks","issue_events_url":"https://api.github.com/repos/Stereobit/dragend/issues/events{/number}","events_url":"https://api.github.com/repos/Stereobit/dragend/events","assignees_url":"https://api.github.com/repos/Stereobit/dragend/assignees{/user}","branches_url":"https://api.github.com/repos/Stereobit/dragend/branches{/branch}","tags_url":"https://api.github.com/repos/Stereobit/dragend/tags","blobs_url":"https://api.github.com/repos/Stereobit/dragend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stereobit/dragend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stereobit/dragend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stereobit/dragend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stereobit/dragend/statuses/{sha}","languages_url":"https://api.github.com/repos/Stereobit/dragend/languages","stargazers_url":"https://api.github.com/repos/Stereobit/dragend/stargazers","contributors_url":"https://api.github.com/repos/Stereobit/dragend/contributors","subscribers_url":"https://api.github.com/repos/Stereobit/dragend/subscribers","subscription_url":"https://api.github.com/repos/Stereobit/dragend/subscription","commits_url":"https://api.github.com/repos/Stereobit/dragend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stereobit/dragend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stereobit/dragend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stereobit/dragend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stereobit/dragend/contents/{+path}","compare_url":"https://api.github.com/repos/Stereobit/dragend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stereobit/dragend/merges","archive_url":"https://api.github.com/repos/Stereobit/dragend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stereobit/dragend/downloads","issues_url":"https://api.github.com/repos/Stereobit/dragend/issues{/number}","pulls_url":"https://api.github.com/repos/Stereobit/dragend/pulls{/number}","milestones_url":"https://api.github.com/repos/Stereobit/dragend/milestones{/number}","notifications_url":"https://api.github.com/repos/Stereobit/dragend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stereobit/dragend/labels{/name}","releases_url":"https://api.github.com/repos/Stereobit/dragend/releases{/id}","created_at":"2012-08-04T09:38:48Z","updated_at":"2015-05-01T19:21:01Z","pushed_at":"2015-05-02T14:51:37Z","git_url":"git://github.com/Stereobit/dragend.git","ssh_url":"git@github.com:Stereobit/dragend.git","clone_url":"https://github.com/Stereobit/dragend.git","svn_url":"https://github.com/Stereobit/dragend","homepage":"http://stereobit.github.com/dragend/","size":2232,"stargazers_count":208,"watchers_count":208,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":61,"mirror_url":null,"open_issues_count":34,"forks":61,"open_issues":34,"watchers":208,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Stereobit/dragend/pulls/64"},"html":{"href":"https://github.com/Stereobit/dragend/pull/64"},"issue":{"href":"https://api.github.com/repos/Stereobit/dragend/issues/64"},"comments":{"href":"https://api.github.com/repos/Stereobit/dragend/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/Stereobit/dragend/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/Stereobit/dragend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Stereobit/dragend/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/Stereobit/dragend/statuses/aa6ec41e9a75ec3757e791b0a164048ad99b32ed"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}