{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3278","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3278/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3278/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3278/events","html_url":"https://github.com/Leaflet/Leaflet/pull/3278","id":59789612,"number":3278,"title":"Refactor move/zoom events","user":{"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},"labels":[{"url":"https://api.github.com/repos/Leaflet/Leaflet/labels/api","name":"api","color":"207de5"},{"url":"https://api.github.com/repos/Leaflet/Leaflet/labels/refactoring","name":"refactoring","color":"99ffbb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/25","html_url":"https://github.com/Leaflet/Leaflet/milestones/1.0-beta1","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/25/labels","id":847955,"number":25,"title":"1.0-beta1","description":"\r\n\r\n<!---\r\n@huboard:{\"order\":8.0}\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":0,"closed_issues":49,"state":"closed","created_at":"2014-10-31T10:54:31Z","updated_at":"2015-10-23T13:47:15Z","due_on":null,"closed_at":"2015-07-14T14:26:06Z"},"comments":15,"created_at":"2015-03-04T12:12:28Z","updated_at":"2015-11-03T11:56:12Z","closed_at":"2015-06-05T18:02:51Z","pull_request":{"url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/3278","html_url":"https://github.com/Leaflet/Leaflet/pull/3278","diff_url":"https://github.com/Leaflet/Leaflet/pull/3278.diff","patch_url":"https://github.com/Leaflet/Leaflet/pull/3278.patch"},"body":"Refactoring to make movement-related events in Leaflet less confusing, more consistent across different types of movements/animations and fitting the new paradigm with fractional zoom levels and flyTo animations better.\r\n\r\n- [x] remove `viewreset` event and depend solely on `zoom` event in layers instead\r\n- [x] refactor confusing `Map` `_resetView` code into small separate methods\r\n- [x] refactor `Map.TouchZoom` code to rely on `zoom` events during pinch-zoom\r\n- [x] decide how to reset view when doing long-distance panning\r\n- [x] simplify transformation math to enable transforming vector layers from any state\r\n- [x] make `Renderer` rely on `zoom` events to scale renderer\r\n- [x] get rid of the ambiguity of relying on `zoomanim` in places when there's no actual animation\r\n- [x] stop vector reprojection/clipping/simplification on every frame #2982 \r\n- [x] bring `viewreset` event back but in a different meaning (not zoom but full reset)\r\n- [x] fix tests\r\n\r\nCloses #3216, closes #3134. Related: #2982 "},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments/153330338","html_url":"https://github.com/Leaflet/Leaflet/pull/3278#issuecomment-153330338","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3278","id":153330338,"user":{"login":"joshdickerson92","id":8803534,"avatar_url":"https://avatars.githubusercontent.com/u/8803534?v=3","gravatar_id":"","url":"https://api.github.com/users/joshdickerson92","html_url":"https://github.com/joshdickerson92","followers_url":"https://api.github.com/users/joshdickerson92/followers","following_url":"https://api.github.com/users/joshdickerson92/following{/other_user}","gists_url":"https://api.github.com/users/joshdickerson92/gists{/gist_id}","starred_url":"https://api.github.com/users/joshdickerson92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshdickerson92/subscriptions","organizations_url":"https://api.github.com/users/joshdickerson92/orgs","repos_url":"https://api.github.com/users/joshdickerson92/repos","events_url":"https://api.github.com/users/joshdickerson92/events{/privacy}","received_events_url":"https://api.github.com/users/joshdickerson92/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T11:56:12Z","updated_at":"2015-11-03T11:56:12Z","body":"@mourner Whoops, should have updated the latter one now. If not then here is [the link](http://jsfiddle.net/joshuadickerson92/3v7hd2vx/7/)"}}