{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3138","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3138/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3138/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3138/events","html_url":"https://github.com/Leaflet/Leaflet/issues/3138","id":54352738,"number":3138,"title":"touchZoom does not work in ipad Air","user":{"login":"jasonzhang2022","id":6558151,"avatar_url":"https://avatars.githubusercontent.com/u/6558151?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonzhang2022","html_url":"https://github.com/jasonzhang2022","followers_url":"https://api.github.com/users/jasonzhang2022/followers","following_url":"https://api.github.com/users/jasonzhang2022/following{/other_user}","gists_url":"https://api.github.com/users/jasonzhang2022/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonzhang2022/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonzhang2022/subscriptions","organizations_url":"https://api.github.com/users/jasonzhang2022/orgs","repos_url":"https://api.github.com/users/jasonzhang2022/repos","events_url":"https://api.github.com/users/jasonzhang2022/events{/privacy}","received_events_url":"https://api.github.com/users/jasonzhang2022/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-14T17:44:17Z","updated_at":"2015-01-14T19:17:31Z","closed_at":null,"body":"My Environment: ipad Air, ios 8.1.2, cordova wrapped leaflet application, leaflet 0.7.3.\r\n\r\nZoom by control works.\r\nDoubleClick Zoom works.\r\nIt always works ndroid.\r\nTouchZoom does not work under ios 8.1.2. Debugging shows that some fractional zoom level is used to request map tile.\r\n\r\nI traced it down this method.\r\n\r\n```javascript\r\ngetScaleZoom: function (scale, fromZoom) {\r\n\t\tfromZoom = fromZoom === undefined ? this._zoom : fromZoom;\r\n\t\treturn fromZoom + (Math.log(scale) / Math.LN2);\r\n\t},\r\n```\r\nThis method is called by animationZoom to retrieve zoom level. If I change the return to \r\n> return Math.round(fromZoom + (Math.log(scale) / Math.LN2));\r\n\r\nThe touchZoom works, but is not smooth.\r\n"},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments/69973637","html_url":"https://github.com/Leaflet/Leaflet/issues/3138#issuecomment-69973637","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3138","id":69973637,"user":{"login":"danzel","id":393086,"avatar_url":"https://avatars.githubusercontent.com/u/393086?v=3","gravatar_id":"","url":"https://api.github.com/users/danzel","html_url":"https://github.com/danzel","followers_url":"https://api.github.com/users/danzel/followers","following_url":"https://api.github.com/users/danzel/following{/other_user}","gists_url":"https://api.github.com/users/danzel/gists{/gist_id}","starred_url":"https://api.github.com/users/danzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danzel/subscriptions","organizations_url":"https://api.github.com/users/danzel/orgs","repos_url":"https://api.github.com/users/danzel/repos","events_url":"https://api.github.com/users/danzel/events{/privacy}","received_events_url":"https://api.github.com/users/danzel/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T19:17:31Z","updated_at":"2015-01-14T19:17:31Z","body":"Have you tried the master version?"}}