{"action":"created","issue":{"url":"https://api.github.com/repos/Asymmetrik/ngx-leaflet-draw/issues/54","repository_url":"https://api.github.com/repos/Asymmetrik/ngx-leaflet-draw","labels_url":"https://api.github.com/repos/Asymmetrik/ngx-leaflet-draw/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/Asymmetrik/ngx-leaflet-draw/issues/54/comments","events_url":"https://api.github.com/repos/Asymmetrik/ngx-leaflet-draw/issues/54/events","html_url":"https://github.com/Asymmetrik/ngx-leaflet-draw/issues/54","id":326614119,"number":54,"title":"Fix for 'Map drag during polygon draw will add point with leaflet'.","user":{"login":"mhosman","id":5334175,"avatar_url":"https://avatars1.githubusercontent.com/u/5334175?v=4","gravatar_id":"","url":"https://api.github.com/users/mhosman","html_url":"https://github.com/mhosman","followers_url":"https://api.github.com/users/mhosman/followers","following_url":"https://api.github.com/users/mhosman/following{/other_user}","gists_url":"https://api.github.com/users/mhosman/gists{/gist_id}","starred_url":"https://api.github.com/users/mhosman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhosman/subscriptions","organizations_url":"https://api.github.com/users/mhosman/orgs","repos_url":"https://api.github.com/users/mhosman/repos","events_url":"https://api.github.com/users/mhosman/events{/privacy}","received_events_url":"https://api.github.com/users/mhosman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-25T17:57:49Z","updated_at":"2018-05-25T17:58:40Z","closed_at":"2018-05-25T17:58:40Z","author_association":"NONE","body":"The leaflet-draw library has an error and during a polygon draw will add a point to the map. In ordere to fix this, using ngx-leaflet-draw you can use this hack code:\r\n\r\n```\r\n// Fix for touch bug\r\nconst originalOnTouch = (L as any).Draw.Polyline.prototype._onTouch;\r\n\r\n(L as any).Draw.Polyline.prototype._onTouch = function (e) {\r\n      if (e.originalEvent.pointerType !== 'mouse') {\r\n        return originalOnTouch.call(this, e);\r\n      }\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/Asymmetrik/ngx-leaflet-draw/issues/comments/392135034","html_url":"https://github.com/Asymmetrik/ngx-leaflet-draw/issues/54#issuecomment-392135034","issue_url":"https://api.github.com/repos/Asymmetrik/ngx-leaflet-draw/issues/54","id":392135034,"user":{"login":"mhosman","id":5334175,"avatar_url":"https://avatars1.githubusercontent.com/u/5334175?v=4","gravatar_id":"","url":"https://api.github.com/users/mhosman","html_url":"https://github.com/mhosman","followers_url":"https://api.github.com/users/mhosman/followers","following_url":"https://api.github.com/users/mhosman/following{/other_user}","gists_url":"https://api.github.com/users/mhosman/gists{/gist_id}","starred_url":"https://api.github.com/users/mhosman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhosman/subscriptions","organizations_url":"https://api.github.com/users/mhosman/orgs","repos_url":"https://api.github.com/users/mhosman/repos","events_url":"https://api.github.com/users/mhosman/events{/privacy}","received_events_url":"https://api.github.com/users/mhosman/received_events","type":"User","site_admin":false},"created_at":"2018-05-25T17:58:40Z","updated_at":"2018-05-25T17:58:40Z","author_association":"NONE","body":"Issue closed, this is just for information purposes."}}
{"actor":{"display_login":"mhosman"}}