fix cross browser scrolling

This commit is contained in:
Jeremy Kauffman 2016-08-19 09:47:40 -04:00
parent abecc5490a
commit 02416f66e5

View file

@ -25,7 +25,7 @@ var Header = React.createClass({
},
handleScroll: function() {
this.setState({
isScrolled: event.srcElement.body.scrollTop > 0
isScrolled: document.body.scrollTop > 0
});
},
onQueryChange: function(event) {