{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/3846","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/3846/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/3846/comments","events_url":"https://api.github.com/repos/facebook/react/issues/3846/events","html_url":"https://github.com/facebook/react/issues/3846","id":74522500,"number":3846,"title":"React.addons.TestUtils.Simulate.scroll is not working with JSDOM","user":{"login":"alansouzati","id":1207250,"avatar_url":"https://avatars.githubusercontent.com/u/1207250?v=3","gravatar_id":"","url":"https://api.github.com/users/alansouzati","html_url":"https://github.com/alansouzati","followers_url":"https://api.github.com/users/alansouzati/followers","following_url":"https://api.github.com/users/alansouzati/following{/other_user}","gists_url":"https://api.github.com/users/alansouzati/gists{/gist_id}","starred_url":"https://api.github.com/users/alansouzati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alansouzati/subscriptions","organizations_url":"https://api.github.com/users/alansouzati/orgs","repos_url":"https://api.github.com/users/alansouzati/repos","events_url":"https://api.github.com/users/alansouzati/events{/privacy}","received_events_url":"https://api.github.com/users/alansouzati/received_events","type":"User","site_admin":false},"labels":[{"id":139734344,"url":"https://api.github.com/repos/facebook/react/labels/Component:%20Addons%20/%20TestUtils","name":"Component: Addons / TestUtils","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-05-08T22:52:25Z","updated_at":"2016-11-29T10:55:57Z","closed_at":null,"body":"Hi, I'm trying to test the scroll event and I could not make the scroll event propagation to happen using TestUtils:\n\n``` javascript\nReact.addons.TestUtils.Simulate.scroll(contentDiv, { deltaY: 500 });\n```\n\nThe above code is never triggering the scroll function callback.\nThen if I change the implementation to be something like this it works:\n\n``` javascript\ncontentDiv.scrollTop = 500;\n\nvar evt = document.createEvent(\"HTMLEvents\");\nevt.initEvent(\"scroll\", false, true);\ncontentDiv.dispatchEvent(evt);\n```\n\nAm I doing something wrong with the React TestUtils?\nI've created a [stackoverflow](http://stackoverflow.com/questions/30128178/react-addons-testutils-simulate-scroll-is-not-working) ticket for this. \n"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/263539633","html_url":"https://github.com/facebook/react/issues/3846#issuecomment-263539633","issue_url":"https://api.github.com/repos/facebook/react/issues/3846","id":263539633,"user":{"login":"barsukov","id":1594996,"avatar_url":"https://avatars.githubusercontent.com/u/1594996?v=3","gravatar_id":"","url":"https://api.github.com/users/barsukov","html_url":"https://github.com/barsukov","followers_url":"https://api.github.com/users/barsukov/followers","following_url":"https://api.github.com/users/barsukov/following{/other_user}","gists_url":"https://api.github.com/users/barsukov/gists{/gist_id}","starred_url":"https://api.github.com/users/barsukov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barsukov/subscriptions","organizations_url":"https://api.github.com/users/barsukov/orgs","repos_url":"https://api.github.com/users/barsukov/repos","events_url":"https://api.github.com/users/barsukov/events{/privacy}","received_events_url":"https://api.github.com/users/barsukov/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T10:55:57Z","updated_at":"2016-11-29T10:55:57Z","body":"Guys any activity on that issue? Currently has a trouble to test my own infinite scroll component."}}
{"actor":{"display_login":"barsukov"}}