{"action":"created","comment":{"url":"https://api.github.com/repos/w3c/pointerevents/pulls/comments/61624692","id":61624692,"diff_hunk":"@@ -819,20 +819,26 @@\n \t\t</section>\n \t\t</div>\n \t\t<section>\n+\t\t\t<h2 id=\"tracking-legacy-mouse-pos\">Tracking the effective position of legacy mouse pointer</h2>\n+\t\t\t<div>\n+\t\t\t<p>While only <a href=\"#the-primary-pointer\">primary pointers</a> can produce compatibility mouse events, <a href=\"#multiple-primary-pointers\">multiple primary pointers</a> can be active simultaneously, each producing its own stream of compatibility mouse events.  Since all these compatibility events would appear to a legacy mouse-specific code to be coming from a single mouse hardware, user agents are encouraged to guarantee that the compatibility mouse events are consistent from a single device perspective.  For mouse transition events (i.e., <code>mouseover</code>, <code>mouseout</code>, <code>mouseenter</code> and <code>mouseleave</code>), this means the entry/exit state for every event target is valid as implied by [<cite><a class=\"bibref\" href=\"#bib-DOM-LEVEL-3-EVENTS\">DOM-LEVEL-3-EVENTS</a></cite>].  Users agents MAY guarantee this by maintaining the <dfn id=\"dfn-legacy-mouse-pos\">effective position of legacy mouse pointer</dfn> in the document as follows.</p>","path":"index.html","position":49,"original_position":49,"commit_id":"ed0f09699758baa33fdb0eca9d763f3c187858bd","original_commit_id":"ed0f09699758baa33fdb0eca9d763f3c187858bd","user":{"login":"RByers","id":1280419,"avatar_url":"https://avatars.githubusercontent.com/u/1280419?v=3","gravatar_id":"","url":"https://api.github.com/users/RByers","html_url":"https://github.com/RByers","followers_url":"https://api.github.com/users/RByers/followers","following_url":"https://api.github.com/users/RByers/following{/other_user}","gists_url":"https://api.github.com/users/RByers/gists{/gist_id}","starred_url":"https://api.github.com/users/RByers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RByers/subscriptions","organizations_url":"https://api.github.com/users/RByers/orgs","repos_url":"https://api.github.com/users/RByers/repos","events_url":"https://api.github.com/users/RByers/events{/privacy}","received_events_url":"https://api.github.com/users/RByers/received_events","type":"User","site_admin":false},"body":"nit: s/\"a legacy mouse-specific code\"/\"MouseEvent handling code\"","created_at":"2016-04-29T18:31:04Z","updated_at":"2016-04-29T18:31:04Z","html_url":"https://github.com/w3c/pointerevents/pull/56#discussion_r61624692","pull_request_url":"https://api.github.com/repos/w3c/pointerevents/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/w3c/pointerevents/pulls/comments/61624692"},"html":{"href":"https://github.com/w3c/pointerevents/pull/56#discussion_r61624692"},"pull_request":{"href":"https://api.github.com/repos/w3c/pointerevents/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/w3c/pointerevents/pulls/56","id":68230700,"html_url":"https://github.com/w3c/pointerevents/pull/56","diff_url":"https://github.com/w3c/pointerevents/pull/56.diff","patch_url":"https://github.com/w3c/pointerevents/pull/56.patch","issue_url":"https://api.github.com/repos/w3c/pointerevents/issues/56","number":56,"state":"open","locked":false,"title":"Made mouseover/out/enter/leave event firing independent of corresponding PEs.","user":{"login":"mustaqahmed","id":8505377,"avatar_url":"https://avatars.githubusercontent.com/u/8505377?v=3","gravatar_id":"","url":"https://api.github.com/users/mustaqahmed","html_url":"https://github.com/mustaqahmed","followers_url":"https://api.github.com/users/mustaqahmed/followers","following_url":"https://api.github.com/users/mustaqahmed/following{/other_user}","gists_url":"https://api.github.com/users/mustaqahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/mustaqahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustaqahmed/subscriptions","organizations_url":"https://api.github.com/users/mustaqahmed/orgs","repos_url":"https://api.github.com/users/mustaqahmed/repos","events_url":"https://api.github.com/users/mustaqahmed/events{/privacy}","received_events_url":"https://api.github.com/users/mustaqahmed/received_events","type":"User","site_admin":false},"body":"Here is a patch to fix the spec issue #35. In summary, the spec now _suggests_ firing the compat mouse transition events (over/out/enter/leave) right before a pointerdown/up/move event because there is no 1:1 correspondence between the corresponding transition events for PE & ME.\r\n\r\nA few notes:\r\n1. I deliberately skipped firing them before a pointercancel (or even after a pointerleave targeted to window/document) because it can cause multiple mouseout/leave events at a single node---one per primary pointer being canceled.\r\n2. The term \"effective position of legacy mouse pointer\" could be replaced by \"perceived position...\" or even \"apparent position...\". Not sure which one is better. Suggestions?\r\n\r\nhttp://rawgit.com/mustaqahmed/pointerevents/gh-pages/index.html","created_at":"2016-04-28T14:32:48Z","updated_at":"2016-04-29T18:31:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"832f98642213843586763eb71e28ae4dcdd85577","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/w3c/pointerevents/pulls/56/commits","review_comments_url":"https://api.github.com/repos/w3c/pointerevents/pulls/56/comments","review_comment_url":"https://api.github.com/repos/w3c/pointerevents/pulls/comments{/number}","comments_url":"https://api.github.com/repos/w3c/pointerevents/issues/56/comments","statuses_url":"https://api.github.com/repos/w3c/pointerevents/statuses/ed0f09699758baa33fdb0eca9d763f3c187858bd","head":{"label":"mustaqahmed:gh-pages","ref":"gh-pages","sha":"ed0f09699758baa33fdb0eca9d763f3c187858bd","user":{"login":"mustaqahmed","id":8505377,"avatar_url":"https://avatars.githubusercontent.com/u/8505377?v=3","gravatar_id":"","url":"https://api.github.com/users/mustaqahmed","html_url":"https://github.com/mustaqahmed","followers_url":"https://api.github.com/users/mustaqahmed/followers","following_url":"https://api.github.com/users/mustaqahmed/following{/other_user}","gists_url":"https://api.github.com/users/mustaqahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/mustaqahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustaqahmed/subscriptions","organizations_url":"https://api.github.com/users/mustaqahmed/orgs","repos_url":"https://api.github.com/users/mustaqahmed/repos","events_url":"https://api.github.com/users/mustaqahmed/events{/privacy}","received_events_url":"https://api.github.com/users/mustaqahmed/received_events","type":"User","site_admin":false},"repo":{"id":50932658,"name":"pointerevents","full_name":"mustaqahmed/pointerevents","owner":{"login":"mustaqahmed","id":8505377,"avatar_url":"https://avatars.githubusercontent.com/u/8505377?v=3","gravatar_id":"","url":"https://api.github.com/users/mustaqahmed","html_url":"https://github.com/mustaqahmed","followers_url":"https://api.github.com/users/mustaqahmed/followers","following_url":"https://api.github.com/users/mustaqahmed/following{/other_user}","gists_url":"https://api.github.com/users/mustaqahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/mustaqahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustaqahmed/subscriptions","organizations_url":"https://api.github.com/users/mustaqahmed/orgs","repos_url":"https://api.github.com/users/mustaqahmed/repos","events_url":"https://api.github.com/users/mustaqahmed/events{/privacy}","received_events_url":"https://api.github.com/users/mustaqahmed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mustaqahmed/pointerevents","description":"The Pointer Events Spec","fork":true,"url":"https://api.github.com/repos/mustaqahmed/pointerevents","forks_url":"https://api.github.com/repos/mustaqahmed/pointerevents/forks","keys_url":"https://api.github.com/repos/mustaqahmed/pointerevents/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mustaqahmed/pointerevents/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mustaqahmed/pointerevents/teams","hooks_url":"https://api.github.com/repos/mustaqahmed/pointerevents/hooks","issue_events_url":"https://api.github.com/repos/mustaqahmed/pointerevents/issues/events{/number}","events_url":"https://api.github.com/repos/mustaqahmed/pointerevents/events","assignees_url":"https://api.github.com/repos/mustaqahmed/pointerevents/assignees{/user}","branches_url":"https://api.github.com/repos/mustaqahmed/pointerevents/branches{/branch}","tags_url":"https://api.github.com/repos/mustaqahmed/pointerevents/tags","blobs_url":"https://api.github.com/repos/mustaqahmed/pointerevents/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mustaqahmed/pointerevents/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mustaqahmed/pointerevents/git/refs{/sha}","trees_url":"https://api.github.com/repos/mustaqahmed/pointerevents/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mustaqahmed/pointerevents/statuses/{sha}","languages_url":"https://api.github.com/repos/mustaqahmed/pointerevents/languages","stargazers_url":"https://api.github.com/repos/mustaqahmed/pointerevents/stargazers","contributors_url":"https://api.github.com/repos/mustaqahmed/pointerevents/contributors","subscribers_url":"https://api.github.com/repos/mustaqahmed/pointerevents/subscribers","subscription_url":"https://api.github.com/repos/mustaqahmed/pointerevents/subscription","commits_url":"https://api.github.com/repos/mustaqahmed/pointerevents/commits{/sha}","git_commits_url":"https://api.github.com/repos/mustaqahmed/pointerevents/git/commits{/sha}","comments_url":"https://api.github.com/repos/mustaqahmed/pointerevents/comments{/number}","issue_comment_url":"https://api.github.com/repos/mustaqahmed/pointerevents/issues/comments{/number}","contents_url":"https://api.github.com/repos/mustaqahmed/pointerevents/contents/{+path}","compare_url":"https://api.github.com/repos/mustaqahmed/pointerevents/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mustaqahmed/pointerevents/merges","archive_url":"https://api.github.com/repos/mustaqahmed/pointerevents/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mustaqahmed/pointerevents/downloads","issues_url":"https://api.github.com/repos/mustaqahmed/pointerevents/issues{/number}","pulls_url":"https://api.github.com/repos/mustaqahmed/pointerevents/pulls{/number}","milestones_url":"https://api.github.com/repos/mustaqahmed/pointerevents/milestones{/number}","notifications_url":"https://api.github.com/repos/mustaqahmed/pointerevents/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mustaqahmed/pointerevents/labels{/name}","releases_url":"https://api.github.com/repos/mustaqahmed/pointerevents/releases{/id}","deployments_url":"https://api.github.com/repos/mustaqahmed/pointerevents/deployments","created_at":"2016-02-02T16:04:52Z","updated_at":"2016-02-02T16:04:53Z","pushed_at":"2016-04-28T14:29:35Z","git_url":"git://github.com/mustaqahmed/pointerevents.git","ssh_url":"git@github.com:mustaqahmed/pointerevents.git","clone_url":"https://github.com/mustaqahmed/pointerevents.git","svn_url":"https://github.com/mustaqahmed/pointerevents","homepage":null,"size":469,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"w3c:gh-pages","ref":"gh-pages","sha":"00ab1023a7f3c3cb8c2cd940be82f67a6479e672","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":33608627,"name":"pointerevents","full_name":"w3c/pointerevents","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/pointerevents","description":"The Pointer Events Spec","fork":false,"url":"https://api.github.com/repos/w3c/pointerevents","forks_url":"https://api.github.com/repos/w3c/pointerevents/forks","keys_url":"https://api.github.com/repos/w3c/pointerevents/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/pointerevents/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/pointerevents/teams","hooks_url":"https://api.github.com/repos/w3c/pointerevents/hooks","issue_events_url":"https://api.github.com/repos/w3c/pointerevents/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/pointerevents/events","assignees_url":"https://api.github.com/repos/w3c/pointerevents/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/pointerevents/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/pointerevents/tags","blobs_url":"https://api.github.com/repos/w3c/pointerevents/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/pointerevents/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/pointerevents/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/pointerevents/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/pointerevents/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/pointerevents/languages","stargazers_url":"https://api.github.com/repos/w3c/pointerevents/stargazers","contributors_url":"https://api.github.com/repos/w3c/pointerevents/contributors","subscribers_url":"https://api.github.com/repos/w3c/pointerevents/subscribers","subscription_url":"https://api.github.com/repos/w3c/pointerevents/subscription","commits_url":"https://api.github.com/repos/w3c/pointerevents/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/pointerevents/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/pointerevents/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/pointerevents/issues/comments{/number}","contents_url":"https://api.github.com/repos/w3c/pointerevents/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/pointerevents/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/pointerevents/merges","archive_url":"https://api.github.com/repos/w3c/pointerevents/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/pointerevents/downloads","issues_url":"https://api.github.com/repos/w3c/pointerevents/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/pointerevents/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/pointerevents/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/pointerevents/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/pointerevents/labels{/name}","releases_url":"https://api.github.com/repos/w3c/pointerevents/releases{/id}","deployments_url":"https://api.github.com/repos/w3c/pointerevents/deployments","created_at":"2015-04-08T13:30:27Z","updated_at":"2016-03-08T14:19:45Z","pushed_at":"2016-04-29T15:44:26Z","git_url":"git://github.com/w3c/pointerevents.git","ssh_url":"git@github.com:w3c/pointerevents.git","clone_url":"https://github.com/w3c/pointerevents.git","svn_url":"https://github.com/w3c/pointerevents","homepage":null,"size":507,"stargazers_count":13,"watchers_count":13,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":29,"forks":8,"open_issues":29,"watchers":13,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/w3c/pointerevents/pulls/56"},"html":{"href":"https://github.com/w3c/pointerevents/pull/56"},"issue":{"href":"https://api.github.com/repos/w3c/pointerevents/issues/56"},"comments":{"href":"https://api.github.com/repos/w3c/pointerevents/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/w3c/pointerevents/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/w3c/pointerevents/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/w3c/pointerevents/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/w3c/pointerevents/statuses/ed0f09699758baa33fdb0eca9d763f3c187858bd"}}}}