{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3737","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3737/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3737/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3737/events","html_url":"https://github.com/Leaflet/Leaflet/issues/3737","id":100429784,"number":3737,"title":"mouse zoom doesn't preserve mouse location","user":{"login":"Sumbera","id":598862,"avatar_url":"https://avatars.githubusercontent.com/u/598862?v=3","gravatar_id":"","url":"https://api.github.com/users/Sumbera","html_url":"https://github.com/Sumbera","followers_url":"https://api.github.com/users/Sumbera/followers","following_url":"https://api.github.com/users/Sumbera/following{/other_user}","gists_url":"https://api.github.com/users/Sumbera/gists{/gist_id}","starred_url":"https://api.github.com/users/Sumbera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sumbera/subscriptions","organizations_url":"https://api.github.com/users/Sumbera/orgs","repos_url":"https://api.github.com/users/Sumbera/repos","events_url":"https://api.github.com/users/Sumbera/events{/privacy}","received_events_url":"https://api.github.com/users/Sumbera/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Leaflet/Leaflet/labels/feature","name":"feature","color":"faeeaa"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/7","html_url":"https://github.com/Leaflet/Leaflet/milestones/future","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/7/labels","id":385,"number":7,"title":"future","description":"Features that will be implemented sometime in future (no particular version yet)\r\n\r\n<!---\r\n@huboard:{\"order\":17.8125}\n-->\r\n","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":42,"closed_issues":66,"state":"open","created_at":"2011-04-10T07:44:45Z","updated_at":"2015-08-11T23:06:37Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-08-11T22:56:46Z","updated_at":"2015-08-12T09:00:58Z","closed_at":null,"body":"While I am doing some experimental SVG rendering   I found that  leaflet doesn't preserve same location of mouse pointer when I zoom in/out with mouse. It is easy to reproduce: \r\n\r\n1. zoom deep in\r\n2. move mouse for example to the center of your map, or where is your POI\r\n(or go to  http://leafletjs.com/ and move your mouse on the markup there.)\r\n3. do not move mouse, only scroll far out and then back in\r\n4. you will arrive back somewhere else (shifted) than before\r\n\r\nwould be great to preserve mouse location when zooming  as for example google maps  or OL 2.x do.\r\n"},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments/130222368","html_url":"https://github.com/Leaflet/Leaflet/issues/3737#issuecomment-130222368","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3737","id":130222368,"user":{"login":"IvanSanchez","id":1125786,"avatar_url":"https://avatars.githubusercontent.com/u/1125786?v=3","gravatar_id":"","url":"https://api.github.com/users/IvanSanchez","html_url":"https://github.com/IvanSanchez","followers_url":"https://api.github.com/users/IvanSanchez/followers","following_url":"https://api.github.com/users/IvanSanchez/following{/other_user}","gists_url":"https://api.github.com/users/IvanSanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanSanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanSanchez/subscriptions","organizations_url":"https://api.github.com/users/IvanSanchez/orgs","repos_url":"https://api.github.com/users/IvanSanchez/repos","events_url":"https://api.github.com/users/IvanSanchez/events{/privacy}","received_events_url":"https://api.github.com/users/IvanSanchez/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T09:00:58Z","updated_at":"2015-08-12T09:00:58Z","body":"@Sumbera Wow, I didn't expect such a concise solution (somehow I was expecting floating point arithmetic to be the culprit). Could you please make a pull request for that?\r\n\r\nI guess that the `round()` is there for some reason, maybe setting integer CSS offsets in IE8. Probably will need some testing."}}