{"action":"created","issue":{"url":"https://api.github.com/repos/istarkov/google-map-react/issues/197","repository_url":"https://api.github.com/repos/istarkov/google-map-react","labels_url":"https://api.github.com/repos/istarkov/google-map-react/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/istarkov/google-map-react/issues/197/comments","events_url":"https://api.github.com/repos/istarkov/google-map-react/issues/197/events","html_url":"https://github.com/istarkov/google-map-react/pull/197","id":166053586,"number":197,"title":"Added hijack scroll function","user":{"login":"alex-e-leon","id":7065873,"avatar_url":"https://avatars.githubusercontent.com/u/7065873?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-e-leon","html_url":"https://github.com/alex-e-leon","followers_url":"https://api.github.com/users/alex-e-leon/followers","following_url":"https://api.github.com/users/alex-e-leon/following{/other_user}","gists_url":"https://api.github.com/users/alex-e-leon/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-e-leon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-e-leon/subscriptions","organizations_url":"https://api.github.com/users/alex-e-leon/orgs","repos_url":"https://api.github.com/users/alex-e-leon/repos","events_url":"https://api.github.com/users/alex-e-leon/events{/privacy}","received_events_url":"https://api.github.com/users/alex-e-leon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-18T09:26:49Z","updated_at":"2016-08-02T06:37:23Z","closed_at":"2016-08-02T05:28:44Z","pull_request":{"url":"https://api.github.com/repos/istarkov/google-map-react/pulls/197","html_url":"https://github.com/istarkov/google-map-react/pull/197","diff_url":"https://github.com/istarkov/google-map-react/pull/197.diff","patch_url":"https://github.com/istarkov/google-map-react/pull/197.patch"},"body":"@istarkov I've added a hijack scroll function that allows you to manipulate the scroll event\r\n\r\nI couldn't find any PR instructions so please let me know if there's any issues or if you'd like me for example to write tests.\r\n\r\nExample uses:\r\n* You'd like to zoom only multiples of 2 on scroll\r\n* Implement a custom info-window (see https://github.com/istarkov/google-map-react/issues/180) or any other component that has a scroll bar. This is my use-case - I use this function to hijack the scroll event and then zoom only if I'm not inside a scrollable component.\r\n\r\nAlso note that I've added some example functions into the demo files to show how it works, but because the demo maps call `setMapParams` on `onChange` events you don't get a smooth zoom change but instead get a slightly slower zoom change from changing the zoom props.\r\n\r\nI can remove these from the demo if you like but thought it might be useful for you to test."},"comment":{"url":"https://api.github.com/repos/istarkov/google-map-react/issues/comments/236813665","html_url":"https://github.com/istarkov/google-map-react/pull/197#issuecomment-236813665","issue_url":"https://api.github.com/repos/istarkov/google-map-react/issues/197","id":236813665,"user":{"login":"istarkov","id":5077042,"avatar_url":"https://avatars.githubusercontent.com/u/5077042?v=3","gravatar_id":"","url":"https://api.github.com/users/istarkov","html_url":"https://github.com/istarkov","followers_url":"https://api.github.com/users/istarkov/followers","following_url":"https://api.github.com/users/istarkov/following{/other_user}","gists_url":"https://api.github.com/users/istarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/istarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istarkov/subscriptions","organizations_url":"https://api.github.com/users/istarkov/orgs","repos_url":"https://api.github.com/users/istarkov/repos","events_url":"https://api.github.com/users/istarkov/events{/privacy}","received_events_url":"https://api.github.com/users/istarkov/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T06:37:23Z","updated_at":"2016-08-02T06:37:23Z","body":"@alex-e-leon It will be great if you make such PR. Thank you!"}}
{"actor":{"display_login":"istarkov"}}