{"action":"created","comment":{"url":"https://api.github.com/repos/RubaXa/Sortable/pulls/comments/27607112","id":27607112,"diff_hunk":"@@ -261,6 +265,92 @@\n \t\t\t}\n \t\t},\n \n+\t\t_triggerDragStart: function (evt, target, touch) {\n+\t\t\tevt.preventDefault();\n+\n+\t\t\tif (touch) {\n+\t\t\t\t// Touch device support\n+\t\t\t\ttapEvt = {\n+\t\t\t\t\ttarget: target,\n+\t\t\t\t\tclientX: touch.clientX,\n+\t\t\t\t\tclientY: touch.clientY\n+\t\t\t\t};\n+\n+\t\t\t\tthis._onDragStart(tapEvt, 'touch');\n+\t\t\t} else if (supportDraggable) {\n+\t\t\t\t// Handle desktop (mousedown)\n+\t\t\t\tthis._onDragStart(tapEvt);\n+\t\t\t}\n+\n+\t\t\t_on(dragEl, 'dragend', this);\n+\t\t\t_on(rootEl, 'dragstart', this._onDragStart);\n+\n+\t\t\tif (!supportDraggable) {\n+\t\t\t\tthis._onDragStart(tapEvt, true);\n+\t\t\t}\n+\n+\t\t\ttry {\n+\t\t\t\tif (document.selection) {\n+\t\t\t\t\tdocument.selection.empty();\n+\t\t\t\t} else {\n+\t\t\t\t\twindow.getSelection().removeAllRanges();\n+\t\t\t\t}\n+\t\t\t} catch (err) {\n+\t\t\t}\n+\t\t},\n+\n+\t\t_enableDragStart: function (dragEl, target) {\n+\t\t\tdragEl.draggable = true;\n+\n+\t\t\t// Disable \"draggable\"\n+\t\t\tthis.options.ignore.split(',').forEach(function (criteria) {\n+\t\t\t\t_find(target, criteria.trim(), _disableDraggable);\n+\t\t\t});\n+\t\t},\n+\n+\t\t_disableDelayedDrag: function () {\n+\t\t\tclearTimeout(this.dragStartTimer);\n+\n+\t\t\t_off(document, 'mousemove', this._disableDelayedDrag);\n+\t\t\t_off(document, 'touchmove', this._disableDelayedDrag);\n+\t\t},\n+\n+\t\t_prepareDragStart: function (evt, target, el, touch) {\n+\t\t\tvar that = this;","path":"Sortable.js","position":77,"original_position":77,"commit_id":"f149e92a76175375e66728f25642d376bde3f932","original_commit_id":"f149e92a76175375e66728f25642d376bde3f932","user":{"login":"RubaXa","id":1109562,"avatar_url":"https://avatars.githubusercontent.com/u/1109562?v=3","gravatar_id":"","url":"https://api.github.com/users/RubaXa","html_url":"https://github.com/RubaXa","followers_url":"https://api.github.com/users/RubaXa/followers","following_url":"https://api.github.com/users/RubaXa/following{/other_user}","gists_url":"https://api.github.com/users/RubaXa/gists{/gist_id}","starred_url":"https://api.github.com/users/RubaXa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubaXa/subscriptions","organizations_url":"https://api.github.com/users/RubaXa/orgs","repos_url":"https://api.github.com/users/RubaXa/repos","events_url":"https://api.github.com/users/RubaXa/events{/privacy}","received_events_url":"https://api.github.com/users/RubaXa/received_events","type":"User","site_admin":false},"body":"No `that`, only `_this`.","created_at":"2015-04-01T20:18:19Z","updated_at":"2015-04-01T20:18:19Z","html_url":"https://github.com/RubaXa/Sortable/pull/312#discussion_r27607112","pull_request_url":"https://api.github.com/repos/RubaXa/Sortable/pulls/312","_links":{"self":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/comments/27607112"},"html":{"href":"https://github.com/RubaXa/Sortable/pull/312#discussion_r27607112"},"pull_request":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/312"}}},"pull_request":{"url":"https://api.github.com/repos/RubaXa/Sortable/pulls/312","id":31633649,"html_url":"https://github.com/RubaXa/Sortable/pull/312","diff_url":"https://github.com/RubaXa/Sortable/pull/312.diff","patch_url":"https://github.com/RubaXa/Sortable/pull/312.patch","issue_url":"https://api.github.com/repos/RubaXa/Sortable/issues/312","number":312,"state":"open","locked":false,"title":"Add delay between touchstart and dragstart","user":{"login":"jboulouloubi","id":2947763,"avatar_url":"https://avatars.githubusercontent.com/u/2947763?v=3","gravatar_id":"","url":"https://api.github.com/users/jboulouloubi","html_url":"https://github.com/jboulouloubi","followers_url":"https://api.github.com/users/jboulouloubi/followers","following_url":"https://api.github.com/users/jboulouloubi/following{/other_user}","gists_url":"https://api.github.com/users/jboulouloubi/gists{/gist_id}","starred_url":"https://api.github.com/users/jboulouloubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jboulouloubi/subscriptions","organizations_url":"https://api.github.com/users/jboulouloubi/orgs","repos_url":"https://api.github.com/users/jboulouloubi/repos","events_url":"https://api.github.com/users/jboulouloubi/events{/privacy}","received_events_url":"https://api.github.com/users/jboulouloubi/received_events","type":"User","site_admin":false},"body":"Related to: https://github.com/RubaXa/Sortable/pull/56\r\n\r\nOptions.delay is configurable. The drag event doesn't trigger if the user doesn't hold the element long enough.","created_at":"2015-03-20T17:19:02Z","updated_at":"2015-04-01T20:18:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7dfe607b3b698808ae88c878a4ed353c4a1d0c3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RubaXa/Sortable/pulls/312/commits","review_comments_url":"https://api.github.com/repos/RubaXa/Sortable/pulls/312/comments","review_comment_url":"https://api.github.com/repos/RubaXa/Sortable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RubaXa/Sortable/issues/312/comments","statuses_url":"https://api.github.com/repos/RubaXa/Sortable/statuses/f149e92a76175375e66728f25642d376bde3f932","head":{"label":"pumpupapp:feature-delay-touchstart","ref":"feature-delay-touchstart","sha":"f149e92a76175375e66728f25642d376bde3f932","user":{"login":"pumpupapp","id":5672229,"avatar_url":"https://avatars.githubusercontent.com/u/5672229?v=3","gravatar_id":"","url":"https://api.github.com/users/pumpupapp","html_url":"https://github.com/pumpupapp","followers_url":"https://api.github.com/users/pumpupapp/followers","following_url":"https://api.github.com/users/pumpupapp/following{/other_user}","gists_url":"https://api.github.com/users/pumpupapp/gists{/gist_id}","starred_url":"https://api.github.com/users/pumpupapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pumpupapp/subscriptions","organizations_url":"https://api.github.com/users/pumpupapp/orgs","repos_url":"https://api.github.com/users/pumpupapp/repos","events_url":"https://api.github.com/users/pumpupapp/events{/privacy}","received_events_url":"https://api.github.com/users/pumpupapp/received_events","type":"Organization","site_admin":false},"repo":{"id":32594718,"name":"Sortable","full_name":"pumpupapp/Sortable","owner":{"login":"pumpupapp","id":5672229,"avatar_url":"https://avatars.githubusercontent.com/u/5672229?v=3","gravatar_id":"","url":"https://api.github.com/users/pumpupapp","html_url":"https://github.com/pumpupapp","followers_url":"https://api.github.com/users/pumpupapp/followers","following_url":"https://api.github.com/users/pumpupapp/following{/other_user}","gists_url":"https://api.github.com/users/pumpupapp/gists{/gist_id}","starred_url":"https://api.github.com/users/pumpupapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pumpupapp/subscriptions","organizations_url":"https://api.github.com/users/pumpupapp/orgs","repos_url":"https://api.github.com/users/pumpupapp/repos","events_url":"https://api.github.com/users/pumpupapp/events{/privacy}","received_events_url":"https://api.github.com/users/pumpupapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pumpupapp/Sortable","description":"Sortable — is a minimalist JavaScript library for reorderable drag-and-drop lists on modern browsers and touch devices. No jQuery. Supports Meteor, AngularJS, React and any CSS library, e.g. Bootstrap.","fork":true,"url":"https://api.github.com/repos/pumpupapp/Sortable","forks_url":"https://api.github.com/repos/pumpupapp/Sortable/forks","keys_url":"https://api.github.com/repos/pumpupapp/Sortable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pumpupapp/Sortable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pumpupapp/Sortable/teams","hooks_url":"https://api.github.com/repos/pumpupapp/Sortable/hooks","issue_events_url":"https://api.github.com/repos/pumpupapp/Sortable/issues/events{/number}","events_url":"https://api.github.com/repos/pumpupapp/Sortable/events","assignees_url":"https://api.github.com/repos/pumpupapp/Sortable/assignees{/user}","branches_url":"https://api.github.com/repos/pumpupapp/Sortable/branches{/branch}","tags_url":"https://api.github.com/repos/pumpupapp/Sortable/tags","blobs_url":"https://api.github.com/repos/pumpupapp/Sortable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pumpupapp/Sortable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pumpupapp/Sortable/git/refs{/sha}","trees_url":"https://api.github.com/repos/pumpupapp/Sortable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pumpupapp/Sortable/statuses/{sha}","languages_url":"https://api.github.com/repos/pumpupapp/Sortable/languages","stargazers_url":"https://api.github.com/repos/pumpupapp/Sortable/stargazers","contributors_url":"https://api.github.com/repos/pumpupapp/Sortable/contributors","subscribers_url":"https://api.github.com/repos/pumpupapp/Sortable/subscribers","subscription_url":"https://api.github.com/repos/pumpupapp/Sortable/subscription","commits_url":"https://api.github.com/repos/pumpupapp/Sortable/commits{/sha}","git_commits_url":"https://api.github.com/repos/pumpupapp/Sortable/git/commits{/sha}","comments_url":"https://api.github.com/repos/pumpupapp/Sortable/comments{/number}","issue_comment_url":"https://api.github.com/repos/pumpupapp/Sortable/issues/comments{/number}","contents_url":"https://api.github.com/repos/pumpupapp/Sortable/contents/{+path}","compare_url":"https://api.github.com/repos/pumpupapp/Sortable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pumpupapp/Sortable/merges","archive_url":"https://api.github.com/repos/pumpupapp/Sortable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pumpupapp/Sortable/downloads","issues_url":"https://api.github.com/repos/pumpupapp/Sortable/issues{/number}","pulls_url":"https://api.github.com/repos/pumpupapp/Sortable/pulls{/number}","milestones_url":"https://api.github.com/repos/pumpupapp/Sortable/milestones{/number}","notifications_url":"https://api.github.com/repos/pumpupapp/Sortable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pumpupapp/Sortable/labels{/name}","releases_url":"https://api.github.com/repos/pumpupapp/Sortable/releases{/id}","created_at":"2015-03-20T16:29:35Z","updated_at":"2015-03-20T16:29:35Z","pushed_at":"2015-04-01T19:51:21Z","git_url":"git://github.com/pumpupapp/Sortable.git","ssh_url":"git@github.com:pumpupapp/Sortable.git","clone_url":"https://github.com/pumpupapp/Sortable.git","svn_url":"https://github.com/pumpupapp/Sortable","homepage":"http://rubaxa.github.io/Sortable/","size":567,"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":"RubaXa:master","ref":"master","sha":"c6a536aa3f999b2c556f301527fa1e7186a67d65","user":{"login":"RubaXa","id":1109562,"avatar_url":"https://avatars.githubusercontent.com/u/1109562?v=3","gravatar_id":"","url":"https://api.github.com/users/RubaXa","html_url":"https://github.com/RubaXa","followers_url":"https://api.github.com/users/RubaXa/followers","following_url":"https://api.github.com/users/RubaXa/following{/other_user}","gists_url":"https://api.github.com/users/RubaXa/gists{/gist_id}","starred_url":"https://api.github.com/users/RubaXa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubaXa/subscriptions","organizations_url":"https://api.github.com/users/RubaXa/orgs","repos_url":"https://api.github.com/users/RubaXa/repos","events_url":"https://api.github.com/users/RubaXa/events{/privacy}","received_events_url":"https://api.github.com/users/RubaXa/received_events","type":"User","site_admin":false},"repo":{"id":15308499,"name":"Sortable","full_name":"RubaXa/Sortable","owner":{"login":"RubaXa","id":1109562,"avatar_url":"https://avatars.githubusercontent.com/u/1109562?v=3","gravatar_id":"","url":"https://api.github.com/users/RubaXa","html_url":"https://github.com/RubaXa","followers_url":"https://api.github.com/users/RubaXa/followers","following_url":"https://api.github.com/users/RubaXa/following{/other_user}","gists_url":"https://api.github.com/users/RubaXa/gists{/gist_id}","starred_url":"https://api.github.com/users/RubaXa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubaXa/subscriptions","organizations_url":"https://api.github.com/users/RubaXa/orgs","repos_url":"https://api.github.com/users/RubaXa/repos","events_url":"https://api.github.com/users/RubaXa/events{/privacy}","received_events_url":"https://api.github.com/users/RubaXa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RubaXa/Sortable","description":"Sortable — is a minimalist JavaScript library for reorderable drag-and-drop lists on modern browsers and touch devices. No jQuery. Supports Meteor, AngularJS, React and any CSS library, e.g. Bootstrap.","fork":false,"url":"https://api.github.com/repos/RubaXa/Sortable","forks_url":"https://api.github.com/repos/RubaXa/Sortable/forks","keys_url":"https://api.github.com/repos/RubaXa/Sortable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RubaXa/Sortable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RubaXa/Sortable/teams","hooks_url":"https://api.github.com/repos/RubaXa/Sortable/hooks","issue_events_url":"https://api.github.com/repos/RubaXa/Sortable/issues/events{/number}","events_url":"https://api.github.com/repos/RubaXa/Sortable/events","assignees_url":"https://api.github.com/repos/RubaXa/Sortable/assignees{/user}","branches_url":"https://api.github.com/repos/RubaXa/Sortable/branches{/branch}","tags_url":"https://api.github.com/repos/RubaXa/Sortable/tags","blobs_url":"https://api.github.com/repos/RubaXa/Sortable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RubaXa/Sortable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RubaXa/Sortable/git/refs{/sha}","trees_url":"https://api.github.com/repos/RubaXa/Sortable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RubaXa/Sortable/statuses/{sha}","languages_url":"https://api.github.com/repos/RubaXa/Sortable/languages","stargazers_url":"https://api.github.com/repos/RubaXa/Sortable/stargazers","contributors_url":"https://api.github.com/repos/RubaXa/Sortable/contributors","subscribers_url":"https://api.github.com/repos/RubaXa/Sortable/subscribers","subscription_url":"https://api.github.com/repos/RubaXa/Sortable/subscription","commits_url":"https://api.github.com/repos/RubaXa/Sortable/commits{/sha}","git_commits_url":"https://api.github.com/repos/RubaXa/Sortable/git/commits{/sha}","comments_url":"https://api.github.com/repos/RubaXa/Sortable/comments{/number}","issue_comment_url":"https://api.github.com/repos/RubaXa/Sortable/issues/comments{/number}","contents_url":"https://api.github.com/repos/RubaXa/Sortable/contents/{+path}","compare_url":"https://api.github.com/repos/RubaXa/Sortable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RubaXa/Sortable/merges","archive_url":"https://api.github.com/repos/RubaXa/Sortable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RubaXa/Sortable/downloads","issues_url":"https://api.github.com/repos/RubaXa/Sortable/issues{/number}","pulls_url":"https://api.github.com/repos/RubaXa/Sortable/pulls{/number}","milestones_url":"https://api.github.com/repos/RubaXa/Sortable/milestones{/number}","notifications_url":"https://api.github.com/repos/RubaXa/Sortable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RubaXa/Sortable/labels{/name}","releases_url":"https://api.github.com/repos/RubaXa/Sortable/releases{/id}","created_at":"2013-12-19T10:10:13Z","updated_at":"2015-04-01T19:09:37Z","pushed_at":"2015-04-01T19:53:16Z","git_url":"git://github.com/RubaXa/Sortable.git","ssh_url":"git@github.com:RubaXa/Sortable.git","clone_url":"https://github.com/RubaXa/Sortable.git","svn_url":"https://github.com/RubaXa/Sortable","homepage":"http://rubaxa.github.io/Sortable/","size":2744,"stargazers_count":3508,"watchers_count":3508,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":330,"mirror_url":null,"open_issues_count":64,"forks":330,"open_issues":64,"watchers":3508,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/312"},"html":{"href":"https://github.com/RubaXa/Sortable/pull/312"},"issue":{"href":"https://api.github.com/repos/RubaXa/Sortable/issues/312"},"comments":{"href":"https://api.github.com/repos/RubaXa/Sortable/issues/312/comments"},"review_comments":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/312/comments"},"review_comment":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/312/commits"},"statuses":{"href":"https://api.github.com/repos/RubaXa/Sortable/statuses/f149e92a76175375e66728f25642d376bde3f932"}}}}