{"action":"created","issue":{"url":"https://api.github.com/repos/Wildhoney/Leaflet.FreeDraw/issues/57","labels_url":"https://api.github.com/repos/Wildhoney/Leaflet.FreeDraw/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/Wildhoney/Leaflet.FreeDraw/issues/57/comments","events_url":"https://api.github.com/repos/Wildhoney/Leaflet.FreeDraw/issues/57/events","html_url":"https://github.com/Wildhoney/Leaflet.FreeDraw/issues/57","id":88453057,"number":57,"title":"CREATE mode disables scroll wheel zooming and never enables it again","user":{"login":"fplgusmao","id":8159837,"avatar_url":"https://avatars.githubusercontent.com/u/8159837?v=3","gravatar_id":"","url":"https://api.github.com/users/fplgusmao","html_url":"https://github.com/fplgusmao","followers_url":"https://api.github.com/users/fplgusmao/followers","following_url":"https://api.github.com/users/fplgusmao/following{/other_user}","gists_url":"https://api.github.com/users/fplgusmao/gists{/gist_id}","starred_url":"https://api.github.com/users/fplgusmao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fplgusmao/subscriptions","organizations_url":"https://api.github.com/users/fplgusmao/orgs","repos_url":"https://api.github.com/users/fplgusmao/repos","events_url":"https://api.github.com/users/fplgusmao/events{/privacy}","received_events_url":"https://api.github.com/users/fplgusmao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-15T15:05:37Z","updated_at":"2015-10-08T15:39:54Z","closed_at":null,"body":"I have first noticed this in my app but even in the provided heroku app you can see the problem.\r\n\r\nIn the example app, as expected, when in the `CREATE` mode, the \"scroll to zoom\" is deactivated. There, after drawing a polygon (since `freeDraw.options.exitModeAfterCreate` is on), `CREATE` mode becomes disabled, and, with it, the \"scroll to zoom\" becomes enabled again. So far, so good. **The problem is when**, in `CREATE` mode, you change to some other mode \"manually\" – in this case, for example, by clicking on some other mode's \"only\" link before drawing something. Then, the zoom never becomes enabled again.\r\n\r\nI suspect that only the \"automatic mode switch\", like when `freeDraw.options.exitModeAfterCreate` is active, is calling the correct function to set the `defaultPreferences` back again. I tried to look into the code, but I got kinda lost... If you can't find the time to try to debug this, you could give me some basic directions and I could try to look deeper into it."},"comment":{"url":"https://api.github.com/repos/Wildhoney/Leaflet.FreeDraw/issues/comments/146582412","html_url":"https://github.com/Wildhoney/Leaflet.FreeDraw/issues/57#issuecomment-146582412","issue_url":"https://api.github.com/repos/Wildhoney/Leaflet.FreeDraw/issues/57","id":146582412,"user":{"login":"fplgusmao","id":8159837,"avatar_url":"https://avatars.githubusercontent.com/u/8159837?v=3","gravatar_id":"","url":"https://api.github.com/users/fplgusmao","html_url":"https://github.com/fplgusmao","followers_url":"https://api.github.com/users/fplgusmao/followers","following_url":"https://api.github.com/users/fplgusmao/following{/other_user}","gists_url":"https://api.github.com/users/fplgusmao/gists{/gist_id}","starred_url":"https://api.github.com/users/fplgusmao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fplgusmao/subscriptions","organizations_url":"https://api.github.com/users/fplgusmao/orgs","repos_url":"https://api.github.com/users/fplgusmao/repos","events_url":"https://api.github.com/users/fplgusmao/events{/privacy}","received_events_url":"https://api.github.com/users/fplgusmao/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T15:39:53Z","updated_at":"2015-10-08T15:39:53Z","body":"@stev-0 sorry for the ignore, man, I just saw your answer now! meanwhile I'm refactoring my whole app, and I will just take care of the FreeDraw part after a while... When I do it, I'll try your patch and see if it works.\r\n\r\nThanks very much!"}}