{"action":"created","issue":{"url":"https://api.github.com/repos/tinymce/tinymce/issues/3195","repository_url":"https://api.github.com/repos/tinymce/tinymce","labels_url":"https://api.github.com/repos/tinymce/tinymce/issues/3195/labels{/name}","comments_url":"https://api.github.com/repos/tinymce/tinymce/issues/3195/comments","events_url":"https://api.github.com/repos/tinymce/tinymce/issues/3195/events","html_url":"https://github.com/tinymce/tinymce/issues/3195","id":176227355,"number":3195,"title":"During scroll ResizeWindow Event is fired","user":{"login":"TuningGuide","id":5197391,"avatar_url":"https://avatars.githubusercontent.com/u/5197391?v=3","gravatar_id":"","url":"https://api.github.com/users/TuningGuide","html_url":"https://github.com/TuningGuide","followers_url":"https://api.github.com/users/TuningGuide/followers","following_url":"https://api.github.com/users/TuningGuide/following{/other_user}","gists_url":"https://api.github.com/users/TuningGuide/gists{/gist_id}","starred_url":"https://api.github.com/users/TuningGuide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuningGuide/subscriptions","organizations_url":"https://api.github.com/users/TuningGuide/orgs","repos_url":"https://api.github.com/users/TuningGuide/repos","events_url":"https://api.github.com/users/TuningGuide/events{/privacy}","received_events_url":"https://api.github.com/users/TuningGuide/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-11T07:27:42Z","updated_at":"2016-09-11T07:46:48Z","closed_at":null,"body":"When I scroll down a page where a editor is loaded globalEventDelegate in classes/EditorManager checks for type == scroll. The first time it is indeed scroll and so it fires ScrollWindow. The second time it is ScrollWindow which is != scroll so it fires ResizeWindow\r\n\r\nShould we add a check for type != ScrollWindow && ResizeWindow?\r\n\r\n\tfunction globalEventDelegate(e) {\r\n\t\tif(e.type != 'ScrollWindow' && e.type != 'ResizeWindow') {\r\n\t\t\teach(EditorManager.editors, function(editor) {\r\n\t\t\t\tif (e.type === 'scroll') {\r\n\t\t\t\t\teditor.fire('ScrollWindow', e);\r\n\t\t\t\t} else {\r\n\t\t\t\t\teditor.fire('ResizeWindow', e);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}"},"comment":{"url":"https://api.github.com/repos/tinymce/tinymce/issues/comments/246167162","html_url":"https://github.com/tinymce/tinymce/issues/3195#issuecomment-246167162","issue_url":"https://api.github.com/repos/tinymce/tinymce/issues/3195","id":246167162,"user":{"login":"TuningGuide","id":5197391,"avatar_url":"https://avatars.githubusercontent.com/u/5197391?v=3","gravatar_id":"","url":"https://api.github.com/users/TuningGuide","html_url":"https://github.com/TuningGuide","followers_url":"https://api.github.com/users/TuningGuide/followers","following_url":"https://api.github.com/users/TuningGuide/following{/other_user}","gists_url":"https://api.github.com/users/TuningGuide/gists{/gist_id}","starred_url":"https://api.github.com/users/TuningGuide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuningGuide/subscriptions","organizations_url":"https://api.github.com/users/TuningGuide/orgs","repos_url":"https://api.github.com/users/TuningGuide/repos","events_url":"https://api.github.com/users/TuningGuide/events{/privacy}","received_events_url":"https://api.github.com/users/TuningGuide/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T07:46:48Z","updated_at":"2016-09-11T07:46:48Z","body":"I'm using Tinymce with React so it could be that globalEventDelegate with ScrollWindow is called because https://github.com/instructure-react/react-tinymce is rewritting some events."}}
{"actor":{"display_login":"TuningGuide"}}