function updateState() {
  history.replaceState(
    {
      left_top: split_left.scrollTop,
      right_top: split_right.scrollTop
    },
    document.title
  );
}
function updateState() {
  history.replaceState(
    {
      left_top: split_left.scrollTop,
      right_top: split_right.scrollTop
    },
    document.title
  );
}
function updateState ( ) { history . replaceState ( { left_top : split_left . scrollTop , right_top : split_right . scrollTop } , document . title ) ; }
Chrome doesn't remember scroll position properly so do it ourselves. Also works on Firefox and Edge.
Chrome doesn t remember scroll position properly so do it ourselves . Also works on Firefox and Edge .