{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/684","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/684/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/684/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/684/events","html_url":"https://github.com/mapbox/mapbox-gl-draw/issues/684","id":254432391,"number":684,"title":"map.on('draw.update', callback) does not fire consistently","user":{"login":"Plysepter","id":8854614,"avatar_url":"https://avatars0.githubusercontent.com/u/8854614?v=4","gravatar_id":"","url":"https://api.github.com/users/Plysepter","html_url":"https://github.com/Plysepter","followers_url":"https://api.github.com/users/Plysepter/followers","following_url":"https://api.github.com/users/Plysepter/following{/other_user}","gists_url":"https://api.github.com/users/Plysepter/gists{/gist_id}","starred_url":"https://api.github.com/users/Plysepter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Plysepter/subscriptions","organizations_url":"https://api.github.com/users/Plysepter/orgs","repos_url":"https://api.github.com/users/Plysepter/repos","events_url":"https://api.github.com/users/Plysepter/events{/privacy}","received_events_url":"https://api.github.com/users/Plysepter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-31T18:48:34Z","updated_at":"2017-11-14T16:19:09Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nHello! Thanks for contributing. \r\n\r\nIf you are reporting a bug, please:\r\n - Make the issue title a succinct but specific description of the unexpected behavior. Bad: \"Drawing line is broken\". Good: \"draw.changeMode('draw_line_string') throws an invalid options error\"\r\n - Include a link to a minimal demonstration of the bug. We recommend using https://jsbin.com\r\n - Ensure you can reproduce the bug using the latest release.\r\n - Check the console for relevant errors and warnings\r\n - Only post to report a bug or request a feature. Direct all other questions to https://stackoverflow.com/questions/tagged/mapbox-gl-draw\r\n \r\n-->\r\n\r\n**mapbox-gl-js version**: v0.39.1, v0.38.0, v0.37.0\r\n**mapbox-gl-draw version**: v1.0.0, 0.19.0\r\n\r\n### Steps to Trigger Behavior\r\n\r\n 1. Open Plunkr: https://plnkr.co/edit/Rn5AZKlDrdBBAQmdiRy2?p=preview\r\n 2. Open Dev Tools -> Console\r\n 3. Draw a polygon\r\n 4. Update the polygon by moving a point\r\n 5. Repeat step 4 and keep track of the number of times you have moved a point. After a few changes you should notice that the count variable does not represent the number of changes actually made.\r\n\r\n### Expected Behavior\r\nThe `draw.update` event callback should fire each time a point is moved to a new position. Which in turn would increment the count variable by one.\r\n\r\n### Actual Behavior\r\nThe `draw.update` event callback is not being fired consistently. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/comments/344311618","html_url":"https://github.com/mapbox/mapbox-gl-draw/issues/684#issuecomment-344311618","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/684","id":344311618,"user":{"login":"mcwhittemore","id":1551510,"avatar_url":"https://avatars0.githubusercontent.com/u/1551510?v=4","gravatar_id":"","url":"https://api.github.com/users/mcwhittemore","html_url":"https://github.com/mcwhittemore","followers_url":"https://api.github.com/users/mcwhittemore/followers","following_url":"https://api.github.com/users/mcwhittemore/following{/other_user}","gists_url":"https://api.github.com/users/mcwhittemore/gists{/gist_id}","starred_url":"https://api.github.com/users/mcwhittemore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcwhittemore/subscriptions","organizations_url":"https://api.github.com/users/mcwhittemore/orgs","repos_url":"https://api.github.com/users/mcwhittemore/repos","events_url":"https://api.github.com/users/mcwhittemore/events{/privacy}","received_events_url":"https://api.github.com/users/mcwhittemore/received_events","type":"User","site_admin":false},"created_at":"2017-11-14T16:19:09Z","updated_at":"2017-11-14T16:19:09Z","author_association":"MEMBER","body":"`draw.update` is controlled by the modes so its a bit weird. Doing a quick search of [UPDATE](https://github.com/mapbox/mapbox-gl-draw/search?utf8=%E2%9C%93&q=UPDATE&type=) might help track down why this is happening."}}
{"actor":{"display_login":"mcwhittemore"}}