message: Fixed scroll bug
diff: @@ -35,6 +35,22 @@ render() {
  </IntlProvider>
  );
  }
  +
  + componentDidMount() {
  + window.onscroll = () => {
  + let controls = document.getElementById('company-list-controls');
  + if(controls) {
  + if(window.pageYOffset > controls.offsetTop) {
  + controls.classList.add("sticky");
  + document.body.classList.add("sticky-offset");
  + }
  + if(window.pageYOffset < controls.offsetTop + 200) {
  + controls.classList.remove("sticky");
  + document.body.classList.remove("sticky-offset");
  + }
  + }
  + };
  + }
  }
  class CompanySearch extends preact.Component {
  @@ -50,18 +66,6 @@ class CompanySearch extends preact.Component {
  }
  }
  -window.onscroll = () => {
  - let controls = document.getElementById('company-list-controls');
  - if(window.pageYOffset > controls.offsetTop) {
  - controls.classList.add("sticky");
  - document.body.classList.add("sticky-offset");
  - }
  - if(window.pageYOffset < controls.offsetTop + 200) {
  - controls.classList.remove("sticky");
  - document.body.classList.remove("sticky-offset");
  - }
  -};
  -
  preact.render((<CompanyList/>), null, document.getElementById('company-list'));
  preact.render((<CompanySearch/>), null, document.getElementById('company-search'));
  