{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4035","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4035/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4035/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4035/events","html_url":"https://github.com/matplotlib/matplotlib/pull/4035","id":55386279,"number":4035,"title":"FIX: resizing a figure in webagg","user":{"login":"eyurtsev","id":3205522,"avatar_url":"https://avatars.githubusercontent.com/u/3205522?v=3","gravatar_id":"","url":"https://api.github.com/users/eyurtsev","html_url":"https://github.com/eyurtsev","followers_url":"https://api.github.com/users/eyurtsev/followers","following_url":"https://api.github.com/users/eyurtsev/following{/other_user}","gists_url":"https://api.github.com/users/eyurtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/eyurtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyurtsev/subscriptions","organizations_url":"https://api.github.com/users/eyurtsev/orgs","repos_url":"https://api.github.com/users/eyurtsev/repos","events_url":"https://api.github.com/users/eyurtsev/events{/privacy}","received_events_url":"https://api.github.com/users/eyurtsev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/needs_review","name":"needs_review","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-24T21:56:09Z","updated_at":"2015-01-26T00:27:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4035","html_url":"https://github.com/matplotlib/matplotlib/pull/4035","diff_url":"https://github.com/matplotlib/matplotlib/pull/4035.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/4035.patch"},"body":"Resizing in webagg doesn't work because the figure grabs mouse events (https://github.com/matplotlib/matplotlib/issues/3338).\r\n\r\nThis is an iteration over a previous pull request (https://github.com/matplotlib/matplotlib/pull/3341), including the minimal changes required to fix the problem.\r\n\r\nI don't think that the debouncing is necessary anymore, so I removed it. I tested this with both a static plot and animations.\r\n\r\nThis addresses 90% of the problem. \r\n\r\nResizing issues will reappear if working with multiple figures on the same page.\r\nRefactoring would be necessary probably to introduce some \"resizing manager\" that will prevent mouse events from being passed to all figures while any figure is being resized."},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/71402087","html_url":"https://github.com/matplotlib/matplotlib/pull/4035#issuecomment-71402087","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4035","id":71402087,"user":{"login":"eyurtsev","id":3205522,"avatar_url":"https://avatars.githubusercontent.com/u/3205522?v=3","gravatar_id":"","url":"https://api.github.com/users/eyurtsev","html_url":"https://github.com/eyurtsev","followers_url":"https://api.github.com/users/eyurtsev/followers","following_url":"https://api.github.com/users/eyurtsev/following{/other_user}","gists_url":"https://api.github.com/users/eyurtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/eyurtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyurtsev/subscriptions","organizations_url":"https://api.github.com/users/eyurtsev/orgs","repos_url":"https://api.github.com/users/eyurtsev/repos","events_url":"https://api.github.com/users/eyurtsev/events{/privacy}","received_events_url":"https://api.github.com/users/eyurtsev/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T00:27:05Z","updated_at":"2015-01-26T00:27:05Z","body":"Curly braces have been terminated."}}