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