From 02416f66e56084e16fa88390ccbe7c0b49677cf2 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Fri, 19 Aug 2016 09:47:40 -0400 Subject: [PATCH] fix cross browser scrolling --- js/component/header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/component/header.js b/js/component/header.js index 14de86fa0..38ea57a40 100644 --- a/js/component/header.js +++ b/js/component/header.js @@ -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) {