whole_func_string: function scroll (event) {
      if (!ctrl.shouldPaginate) return;
      event.preventDefault();
      ctrl.offsetLeft = fixOffset(ctrl.offsetLeft - event.wheelDelta);
    }
func_code_string: function scroll (event) {
      if (!ctrl.shouldPaginate) return;
      event.preventDefault();
      ctrl.offsetLeft = fixOffset(ctrl.offsetLeft - event.wheelDelta);
    }
func_documentation_string: When pagination is on, this makes sure the selected index is in view.
  @param event