{"action":"created","comment":{"url":"https://api.github.com/repos/jquery/PEP/pulls/comments/47518611","id":47518611,"diff_hunk":"@@ -1,34 +1,13 @@\n-## Learn the tech\n+# Pointer Events Polyfill - making pointer events usable today\n \n-### Why Pointer Events?\n+![PEP logo](pep-logo-shield.png) PEP polyfills pointer events in all browsers that haven't yet implemented them, providing a unified, responsive input model for all devices and input types. You can [read more about Pointer Events below](#why-pointer-events).\n \n-Mouse Events and Touch Events are fundamentally different beasts in browsers today, and that makes it hard to write cross-platform apps.\n-\n-For example, a simple finger paint app needs plenty of work to behave correctly with mouse and touch:\n-\n-Current platforms that implement touch events also provide mouse events for backward compatibility; however, only a subset of Mouse Events are fired and the semantics are changed.\n-\n-- Mouse Events are only fired after the touch sequence ends.\n-- Mouse Events are not fired on elements without a `click` event handler. One must be attached by default, or directly on the element with `onclick`.\n-- `click` events are not fired if the content of the page changes in a `mousemove` or `mouseover` event.\n-- `click` events are fired 300ms after the touch sequence ends.\n-- More information: [Apple Developer Documentation](http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/HandlingEvents/HandlingEvents.html).\n+## Getting Started\n \n-Additionally, Touch Events are sent only to the element that received the `touchstart`. This is fundamentally different than Mouse Events, which fire on the element that is under the mouse. To make them behave similarly, Touch Events need to be retargeted with `document.elementFromPoint`.\n-\n-These incompatibilities lead to applications having to listen to 2 sets of events, mouse on desktop and touch for mobile.\n-\n-**This forked interaction experience is cumbersome and hard to maintain.**\n-\n-Instead, there should exist a set of events that are normalized such that they behave exactly the same, no matter the source: touch, mouse, stylus, skull implant, etc. To do this right, this normalized event system needs to be available for all the web platform to use.\n-\n-*Thus, Pointer Events!*\n-\n-### Basic Usage\n-\n-By default, no Pointer Events are sent from an element. This maximizes possibility that a browser can deliver smooth scrolling and jank-free gestures. If you want to receive events, you must set the `touch-action` property of that element.\n+1. Place the PEP script in the document head\n+  - `<script src=\"https://code.jquery.com/pep/0.3.0/pep.js\"></script>`","path":"README.md","position":null,"original_position":34,"commit_id":"43d819ff07aeae736d934879ff65da55ebd5e450","original_commit_id":"4da80243b2af6a848be644776f76331c6c20c1ac","user":{"login":"jzaefferer","id":52585,"avatar_url":"https://avatars.githubusercontent.com/u/52585?v=3","gravatar_id":"","url":"https://api.github.com/users/jzaefferer","html_url":"https://github.com/jzaefferer","followers_url":"https://api.github.com/users/jzaefferer/followers","following_url":"https://api.github.com/users/jzaefferer/following{/other_user}","gists_url":"https://api.github.com/users/jzaefferer/gists{/gist_id}","starred_url":"https://api.github.com/users/jzaefferer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzaefferer/subscriptions","organizations_url":"https://api.github.com/users/jzaefferer/orgs","repos_url":"https://api.github.com/users/jzaefferer/repos","events_url":"https://api.github.com/users/jzaefferer/events{/privacy}","received_events_url":"https://api.github.com/users/jzaefferer/received_events","type":"User","site_admin":false},"body":"Yeah, it should. Updated.","created_at":"2015-12-14T16:24:50Z","updated_at":"2015-12-14T16:24:50Z","html_url":"https://github.com/jquery/PEP/pull/247#discussion_r47518611","pull_request_url":"https://api.github.com/repos/jquery/PEP/pulls/247","_links":{"self":{"href":"https://api.github.com/repos/jquery/PEP/pulls/comments/47518611"},"html":{"href":"https://github.com/jquery/PEP/pull/247#discussion_r47518611"},"pull_request":{"href":"https://api.github.com/repos/jquery/PEP/pulls/247"}}},"pull_request":{"url":"https://api.github.com/repos/jquery/PEP/pulls/247","id":53242484,"html_url":"https://github.com/jquery/PEP/pull/247","diff_url":"https://github.com/jquery/PEP/pull/247.diff","patch_url":"https://github.com/jquery/PEP/pull/247.patch","issue_url":"https://api.github.com/repos/jquery/PEP/issues/247","number":247,"state":"open","locked":false,"title":"README: Restructure everything, overhaul details, add logo","user":{"login":"jzaefferer","id":52585,"avatar_url":"https://avatars.githubusercontent.com/u/52585?v=3","gravatar_id":"","url":"https://api.github.com/users/jzaefferer","html_url":"https://github.com/jzaefferer","followers_url":"https://api.github.com/users/jzaefferer/followers","following_url":"https://api.github.com/users/jzaefferer/following{/other_user}","gists_url":"https://api.github.com/users/jzaefferer/gists{/gist_id}","starred_url":"https://api.github.com/users/jzaefferer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzaefferer/subscriptions","organizations_url":"https://api.github.com/users/jzaefferer/orgs","repos_url":"https://api.github.com/users/jzaefferer/repos","events_url":"https://api.github.com/users/jzaefferer/events{/privacy}","received_events_url":"https://api.github.com/users/jzaefferer/received_events","type":"User","site_admin":false},"body":"This mixes a bunch of changes, but should still be easy enough to review.\r\n\r\nLooking for better ideas for embedding the logo.","created_at":"2015-12-10T10:51:58Z","updated_at":"2015-12-14T16:24:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3593195c7696dccd535ddb44d46ce3afdb35561d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jquery/PEP/pulls/247/commits","review_comments_url":"https://api.github.com/repos/jquery/PEP/pulls/247/comments","review_comment_url":"https://api.github.com/repos/jquery/PEP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jquery/PEP/issues/247/comments","statuses_url":"https://api.github.com/repos/jquery/PEP/statuses/43d819ff07aeae736d934879ff65da55ebd5e450","head":{"label":"jquery:readme-updates","ref":"readme-updates","sha":"43d819ff07aeae736d934879ff65da55ebd5e450","user":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"repo":{"id":5532217,"name":"PEP","full_name":"jquery/PEP","owner":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jquery/PEP","description":"Pointer Events Polyfill: a unified event system for the web platform","fork":false,"url":"https://api.github.com/repos/jquery/PEP","forks_url":"https://api.github.com/repos/jquery/PEP/forks","keys_url":"https://api.github.com/repos/jquery/PEP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jquery/PEP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jquery/PEP/teams","hooks_url":"https://api.github.com/repos/jquery/PEP/hooks","issue_events_url":"https://api.github.com/repos/jquery/PEP/issues/events{/number}","events_url":"https://api.github.com/repos/jquery/PEP/events","assignees_url":"https://api.github.com/repos/jquery/PEP/assignees{/user}","branches_url":"https://api.github.com/repos/jquery/PEP/branches{/branch}","tags_url":"https://api.github.com/repos/jquery/PEP/tags","blobs_url":"https://api.github.com/repos/jquery/PEP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jquery/PEP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jquery/PEP/git/refs{/sha}","trees_url":"https://api.github.com/repos/jquery/PEP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jquery/PEP/statuses/{sha}","languages_url":"https://api.github.com/repos/jquery/PEP/languages","stargazers_url":"https://api.github.com/repos/jquery/PEP/stargazers","contributors_url":"https://api.github.com/repos/jquery/PEP/contributors","subscribers_url":"https://api.github.com/repos/jquery/PEP/subscribers","subscription_url":"https://api.github.com/repos/jquery/PEP/subscription","commits_url":"https://api.github.com/repos/jquery/PEP/commits{/sha}","git_commits_url":"https://api.github.com/repos/jquery/PEP/git/commits{/sha}","comments_url":"https://api.github.com/repos/jquery/PEP/comments{/number}","issue_comment_url":"https://api.github.com/repos/jquery/PEP/issues/comments{/number}","contents_url":"https://api.github.com/repos/jquery/PEP/contents/{+path}","compare_url":"https://api.github.com/repos/jquery/PEP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jquery/PEP/merges","archive_url":"https://api.github.com/repos/jquery/PEP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jquery/PEP/downloads","issues_url":"https://api.github.com/repos/jquery/PEP/issues{/number}","pulls_url":"https://api.github.com/repos/jquery/PEP/pulls{/number}","milestones_url":"https://api.github.com/repos/jquery/PEP/milestones{/number}","notifications_url":"https://api.github.com/repos/jquery/PEP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jquery/PEP/labels{/name}","releases_url":"https://api.github.com/repos/jquery/PEP/releases{/id}","created_at":"2012-08-23T20:49:02Z","updated_at":"2015-12-14T07:01:27Z","pushed_at":"2015-12-14T16:24:44Z","git_url":"git://github.com/jquery/PEP.git","ssh_url":"git@github.com:jquery/PEP.git","clone_url":"https://github.com/jquery/PEP.git","svn_url":"https://github.com/jquery/PEP","homepage":"http://www.w3.org/TR/pointerevents/","size":786,"stargazers_count":842,"watchers_count":842,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":87,"mirror_url":null,"open_issues_count":32,"forks":87,"open_issues":32,"watchers":842,"default_branch":"master"}},"base":{"label":"jquery:master","ref":"master","sha":"f4e9355a2af284b00558a50c9c6dbb6008cbc995","user":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"repo":{"id":5532217,"name":"PEP","full_name":"jquery/PEP","owner":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jquery/PEP","description":"Pointer Events Polyfill: a unified event system for the web platform","fork":false,"url":"https://api.github.com/repos/jquery/PEP","forks_url":"https://api.github.com/repos/jquery/PEP/forks","keys_url":"https://api.github.com/repos/jquery/PEP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jquery/PEP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jquery/PEP/teams","hooks_url":"https://api.github.com/repos/jquery/PEP/hooks","issue_events_url":"https://api.github.com/repos/jquery/PEP/issues/events{/number}","events_url":"https://api.github.com/repos/jquery/PEP/events","assignees_url":"https://api.github.com/repos/jquery/PEP/assignees{/user}","branches_url":"https://api.github.com/repos/jquery/PEP/branches{/branch}","tags_url":"https://api.github.com/repos/jquery/PEP/tags","blobs_url":"https://api.github.com/repos/jquery/PEP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jquery/PEP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jquery/PEP/git/refs{/sha}","trees_url":"https://api.github.com/repos/jquery/PEP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jquery/PEP/statuses/{sha}","languages_url":"https://api.github.com/repos/jquery/PEP/languages","stargazers_url":"https://api.github.com/repos/jquery/PEP/stargazers","contributors_url":"https://api.github.com/repos/jquery/PEP/contributors","subscribers_url":"https://api.github.com/repos/jquery/PEP/subscribers","subscription_url":"https://api.github.com/repos/jquery/PEP/subscription","commits_url":"https://api.github.com/repos/jquery/PEP/commits{/sha}","git_commits_url":"https://api.github.com/repos/jquery/PEP/git/commits{/sha}","comments_url":"https://api.github.com/repos/jquery/PEP/comments{/number}","issue_comment_url":"https://api.github.com/repos/jquery/PEP/issues/comments{/number}","contents_url":"https://api.github.com/repos/jquery/PEP/contents/{+path}","compare_url":"https://api.github.com/repos/jquery/PEP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jquery/PEP/merges","archive_url":"https://api.github.com/repos/jquery/PEP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jquery/PEP/downloads","issues_url":"https://api.github.com/repos/jquery/PEP/issues{/number}","pulls_url":"https://api.github.com/repos/jquery/PEP/pulls{/number}","milestones_url":"https://api.github.com/repos/jquery/PEP/milestones{/number}","notifications_url":"https://api.github.com/repos/jquery/PEP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jquery/PEP/labels{/name}","releases_url":"https://api.github.com/repos/jquery/PEP/releases{/id}","created_at":"2012-08-23T20:49:02Z","updated_at":"2015-12-14T07:01:27Z","pushed_at":"2015-12-14T16:24:44Z","git_url":"git://github.com/jquery/PEP.git","ssh_url":"git@github.com:jquery/PEP.git","clone_url":"https://github.com/jquery/PEP.git","svn_url":"https://github.com/jquery/PEP","homepage":"http://www.w3.org/TR/pointerevents/","size":786,"stargazers_count":842,"watchers_count":842,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":87,"mirror_url":null,"open_issues_count":32,"forks":87,"open_issues":32,"watchers":842,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jquery/PEP/pulls/247"},"html":{"href":"https://github.com/jquery/PEP/pull/247"},"issue":{"href":"https://api.github.com/repos/jquery/PEP/issues/247"},"comments":{"href":"https://api.github.com/repos/jquery/PEP/issues/247/comments"},"review_comments":{"href":"https://api.github.com/repos/jquery/PEP/pulls/247/comments"},"review_comment":{"href":"https://api.github.com/repos/jquery/PEP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jquery/PEP/pulls/247/commits"},"statuses":{"href":"https://api.github.com/repos/jquery/PEP/statuses/43d819ff07aeae736d934879ff65da55ebd5e450"}}}}