{"action":"created","comment":{"url":"https://api.github.com/repos/RubaXa/Sortable/pulls/comments/27633893","id":27633893,"diff_hunk":"@@ -264,6 +265,87 @@\n \t\t\t}\n \t\t},\n \n+\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\tthis._onDragStart(tapEvt, true);\n+\t\t\t} else {\n+\t\t\t\t_on(dragEl, 'dragend', this);\n+\t\t\t\t_on(rootEl, 'dragstart', this._onDragStart);\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 _this = this;\n+\n+\t\t\tif (target && !dragEl && (target.parentNode === el)) {\n+\t\t\t\ttapEvt = evt;\n+\n+\t\t\t\trootEl = this.el;\n+\t\t\t\tdragEl = target;\n+\t\t\t\tnextEl = dragEl.nextSibling;\n+\t\t\t\tactiveGroup = this.options.group;\n+\n+\t\t\t\tthis.options.delay = this.options.delay || 1;\n+\t\t\t\tif (this.options.delay) {","path":"Sortable.js","position":71,"original_position":71,"commit_id":"78c53ba5e19c6616893183e655cf9d28cb1ec77d","original_commit_id":"78c53ba5e19c6616893183e655cf9d28cb1ec77d","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":"And this.","created_at":"2015-04-02T05:51:56Z","updated_at":"2015-04-02T05:51:56Z","html_url":"https://github.com/RubaXa/Sortable/pull/325#discussion_r27633893","pull_request_url":"https://api.github.com/repos/RubaXa/Sortable/pulls/325","_links":{"self":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/comments/27633893"},"html":{"href":"https://github.com/RubaXa/Sortable/pull/325#discussion_r27633893"},"pull_request":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/325"}}},"pull_request":{"url":"https://api.github.com/repos/RubaXa/Sortable/pulls/325","id":32468023,"html_url":"https://github.com/RubaXa/Sortable/pull/325","diff_url":"https://github.com/RubaXa/Sortable/pull/325.diff","patch_url":"https://github.com/RubaXa/Sortable/pull/325.patch","issue_url":"https://api.github.com/repos/RubaXa/Sortable/issues/325","number":325,"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/312","created_at":"2015-04-01T22:37:39Z","updated_at":"2015-04-02T05:51:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2578269bb072a5f68f7c5b698366b5c4761c3087","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RubaXa/Sortable/pulls/325/commits","review_comments_url":"https://api.github.com/repos/RubaXa/Sortable/pulls/325/comments","review_comment_url":"https://api.github.com/repos/RubaXa/Sortable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RubaXa/Sortable/issues/325/comments","statuses_url":"https://api.github.com/repos/RubaXa/Sortable/statuses/78c53ba5e19c6616893183e655cf9d28cb1ec77d","head":{"label":"pumpupapp:dev","ref":"dev","sha":"78c53ba5e19c6616893183e655cf9d28cb1ec77d","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-01T22:41:57Z","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:dev","ref":"dev","sha":"b7749c4576af790cdd3620336dea69729cf35b57","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-02T02:36:40Z","pushed_at":"2015-04-01T22:37:39Z","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":3511,"watchers_count":3511,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":329,"mirror_url":null,"open_issues_count":63,"forks":329,"open_issues":63,"watchers":3511,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/325"},"html":{"href":"https://github.com/RubaXa/Sortable/pull/325"},"issue":{"href":"https://api.github.com/repos/RubaXa/Sortable/issues/325"},"comments":{"href":"https://api.github.com/repos/RubaXa/Sortable/issues/325/comments"},"review_comments":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/325/comments"},"review_comment":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RubaXa/Sortable/pulls/325/commits"},"statuses":{"href":"https://api.github.com/repos/RubaXa/Sortable/statuses/78c53ba5e19c6616893183e655cf9d28cb1ec77d"}}}}