code: function (state) {
              scrollDirection = util.sign(state.page - layoutState.page);
              layoutState = state;
          }
docs: Updates the current layout state and scroll direction
  @param   {Object} state The layout state
  @returns {void}