{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/PEP/issues/269","repository_url":"https://api.github.com/repos/jquery/PEP","labels_url":"https://api.github.com/repos/jquery/PEP/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/jquery/PEP/issues/269/comments","events_url":"https://api.github.com/repos/jquery/PEP/issues/269/events","html_url":"https://github.com/jquery/PEP/issues/269","id":133001698,"number":269,"title":"gotpointercapture event should be a PointerEvent","user":{"login":"bethge","id":522575,"avatar_url":"https://avatars.githubusercontent.com/u/522575?v=3","gravatar_id":"","url":"https://api.github.com/users/bethge","html_url":"https://github.com/bethge","followers_url":"https://api.github.com/users/bethge/followers","following_url":"https://api.github.com/users/bethge/following{/other_user}","gists_url":"https://api.github.com/users/bethge/gists{/gist_id}","starred_url":"https://api.github.com/users/bethge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethge/subscriptions","organizations_url":"https://api.github.com/users/bethge/orgs","repos_url":"https://api.github.com/users/bethge/repos","events_url":"https://api.github.com/users/bethge/events{/privacy}","received_events_url":"https://api.github.com/users/bethge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T15:21:22Z","updated_at":"2016-02-16T14:30:39Z","closed_at":null,"body":"The `gotpointercapture` event caused by `element.setPointerCapture()` is currently a mere `Event`. The test `pointerevent_gotpointercapture_before_first_pointerevent-manual` expects a `gotpointercapture` event to be a pointer event: https://github.com/w3c/web-platform-tests/blob/master/pointerevents/pointerevent_gotpointercapture_before_first_pointerevent-manual.html#L39.\r\n\r\nIt looks doable to create a `PointerEvent` instead of an `Event`. The trickier part is getting the properties  of the pointer at the time of the execution of `element.setPointerCapture()`, like `pageX` and `pageY`. Afaik, the only point where we store recent pointer events is `dispatcher.pointermap`, which contains the most recent `mousedown` event or particular `touchstart` properties.\r\n\r\nIntroducing tracking of the most recent `mousemove` and `touchmove` would get us closer to the actual value. Generally I would say the most recent `mousedown` \\ `touchstart` is close enough, since the most common use case of a capture is to capture the movement of a pointer starting from the moment the pointer is pressed. \r\nThough if one creates something fancy like: \"Only capture, if the pointer has been dragged for over 2 seconds\" or \"only capture, if the pointer left a certain element\", using the most recent `pointerdown` would be way off.\r\n\r\nOn the other hand, the `setPointerCapture` event _is_ asynchronous, so maybe we can be somewhat lax about its properties.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jquery/PEP/issues/comments/184701916","html_url":"https://github.com/jquery/PEP/issues/269#issuecomment-184701916","issue_url":"https://api.github.com/repos/jquery/PEP/issues/269","id":184701916,"user":{"login":"scottgonzalez","id":141167,"avatar_url":"https://avatars.githubusercontent.com/u/141167?v=3","gravatar_id":"","url":"https://api.github.com/users/scottgonzalez","html_url":"https://github.com/scottgonzalez","followers_url":"https://api.github.com/users/scottgonzalez/followers","following_url":"https://api.github.com/users/scottgonzalez/following{/other_user}","gists_url":"https://api.github.com/users/scottgonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/scottgonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottgonzalez/subscriptions","organizations_url":"https://api.github.com/users/scottgonzalez/orgs","repos_url":"https://api.github.com/users/scottgonzalez/repos","events_url":"https://api.github.com/users/scottgonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/scottgonzalez/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T14:30:38Z","updated_at":"2016-02-16T14:30:38Z","body":"I think it's fine to be lax. I'm not even sure that people will look at those properties."}}