{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3803","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3803/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3803/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3803/events","html_url":"https://github.com/Leaflet/Leaflet/pull/3803","id":104752401,"number":3803,"title":"Make sure mouse has an external relatedTarget on mouseout/over ","user":{"login":"yohanboniface","id":146023,"avatar_url":"https://avatars.githubusercontent.com/u/146023?v=3","gravatar_id":"","url":"https://api.github.com/users/yohanboniface","html_url":"https://github.com/yohanboniface","followers_url":"https://api.github.com/users/yohanboniface/followers","following_url":"https://api.github.com/users/yohanboniface/following{/other_user}","gists_url":"https://api.github.com/users/yohanboniface/gists{/gist_id}","starred_url":"https://api.github.com/users/yohanboniface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yohanboniface/subscriptions","organizations_url":"https://api.github.com/users/yohanboniface/orgs","repos_url":"https://api.github.com/users/yohanboniface/repos","events_url":"https://api.github.com/users/yohanboniface/events{/privacy}","received_events_url":"https://api.github.com/users/yohanboniface/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Leaflet/Leaflet/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/26","html_url":"https://github.com/Leaflet/Leaflet/milestones/1.0-beta2","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/26/labels","id":1190479,"number":26,"title":"1.0-beta2","description":"","creator":{"login":"mourner","id":25395,"avatar_url":"https://avatars.githubusercontent.com/u/25395?v=3","gravatar_id":"","url":"https://api.github.com/users/mourner","html_url":"https://github.com/mourner","followers_url":"https://api.github.com/users/mourner/followers","following_url":"https://api.github.com/users/mourner/following{/other_user}","gists_url":"https://api.github.com/users/mourner/gists{/gist_id}","starred_url":"https://api.github.com/users/mourner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mourner/subscriptions","organizations_url":"https://api.github.com/users/mourner/orgs","repos_url":"https://api.github.com/users/mourner/repos","events_url":"https://api.github.com/users/mourner/events{/privacy}","received_events_url":"https://api.github.com/users/mourner/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":19,"state":"open","created_at":"2015-07-02T11:59:33Z","updated_at":"2015-09-11T09:04:02Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-09-03T18:12:59Z","updated_at":"2015-09-15T04:52:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/3803","html_url":"https://github.com/Leaflet/Leaflet/pull/3803","diff_url":"https://github.com/Leaflet/Leaflet/pull/3803.diff","patch_url":"https://github.com/Leaflet/Leaflet/pull/3803.patch"},"body":"Fix #3797 #3708 \r\n\r\nThis commit controls that, on `mouseout` or `mouseover`, the relatedTarget was an external DOM element (and thus not a child).\r\n\r\nThis fixes #3797, but not reproducing the exact behaviour of 0.7.5, which conflicts with other choices on event management: basically, in 0.7.5 `mouseover` and `mouseout` was still bubbling (so fired twice when moving mouse from a div icon to its child), while now we are not firing those events when relatedTarget is a descendant element of the listener.\r\n\r\nThe frustrating point is that `happen` does not seem to be able to set the `relatedTarget` property, which prevents us from testing the scenarios. I'll have a look if this can be fixed on `happen`.\r\n\r\nI've also renamed `_checkMouse` to `_isExternalTarget` because I found myself always needing to check the method content to remember what it is actually doing. I'm open to better names, though ;)"},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments/140279992","html_url":"https://github.com/Leaflet/Leaflet/pull/3803#issuecomment-140279992","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3803","id":140279992,"user":{"login":"ilfa","id":1009415,"avatar_url":"https://avatars.githubusercontent.com/u/1009415?v=3","gravatar_id":"","url":"https://api.github.com/users/ilfa","html_url":"https://github.com/ilfa","followers_url":"https://api.github.com/users/ilfa/followers","following_url":"https://api.github.com/users/ilfa/following{/other_user}","gists_url":"https://api.github.com/users/ilfa/gists{/gist_id}","starred_url":"https://api.github.com/users/ilfa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilfa/subscriptions","organizations_url":"https://api.github.com/users/ilfa/orgs","repos_url":"https://api.github.com/users/ilfa/repos","events_url":"https://api.github.com/users/ilfa/events{/privacy}","received_events_url":"https://api.github.com/users/ilfa/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T04:52:26Z","updated_at":"2015-09-15T04:52:26Z","body":"Branch need rebase. Again."}}