src/sap.ui.commons/src/sap/ui/commons/RoadMapRenderer.js
function(oRoadMap, iNewPos, bSkipAnim, fEndCallBack){
		var jStepArea = oRoadMap.$("steparea");
		jStepArea.stop(false, true);

		if (iNewPos == "next") {
			iNewPos = jStepArea.scrollLeft() + oRoadMap.iStepWidth * getRTLFactor();
		} else if (iNewPos == "prev") {
			iNewPos = jStepArea.scrollLeft() - oRoadMap.iStepWidth * getRTLFactor();
		} else if (iNewPos == "keep") {
			iNewPos = jStepArea.scrollLeft();
		} else {
			iNewPos = iNewPos * getRTLFactor();
		}

		var fDoAfterScroll = function(){
			updateDelimiters(oRoadMap);

			if (fEndCallBack) {
				var jFirstVisibleRef = RoadMapRenderer.getFirstVisibleRef(oRoadMap);
				fEndCallBack(jFirstVisibleRef.attr("id"));
			}
		};

		if (!jQuery.fx.off && !bSkipAnim) {
			jStepArea.animate({scrollLeft: iNewPos}, "fast", fDoAfterScroll);
		} else {
			jStepArea.scrollLeft(iNewPos);
			fDoAfterScroll();
		}
	}
function(oRoadMap, iNewPos, bSkipAnim, fEndCallBack){
		var jStepArea = oRoadMap.$("steparea");
		jStepArea.stop(false, true);

		if (iNewPos == "next") {
			iNewPos = jStepArea.scrollLeft() + oRoadMap.iStepWidth * getRTLFactor();
		} else if (iNewPos == "prev") {
			iNewPos = jStepArea.scrollLeft() - oRoadMap.iStepWidth * getRTLFactor();
		} else if (iNewPos == "keep") {
			iNewPos = jStepArea.scrollLeft();
		} else {
			iNewPos = iNewPos * getRTLFactor();
		}

		var fDoAfterScroll = function(){
			updateDelimiters(oRoadMap);

			if (fEndCallBack) {
				var jFirstVisibleRef = RoadMapRenderer.getFirstVisibleRef(oRoadMap);
				fEndCallBack(jFirstVisibleRef.attr("id"));
			}
		};

		if (!jQuery.fx.off && !bSkipAnim) {
			jStepArea.animate({scrollLeft: iNewPos}, "fast", fDoAfterScroll);
		} else {
			jStepArea.scrollLeft(iNewPos);
			fDoAfterScroll();
		}
	}
function ( oRoadMap , iNewPos , bSkipAnim , fEndCallBack ) { var jStepArea = oRoadMap . $ ( "steparea" ) ; jStepArea . stop ( false , true ) ; if ( iNewPos == "next" ) { iNewPos = jStepArea . scrollLeft ( ) + oRoadMap . iStepWidth * getRTLFactor ( ) ; } else if ( iNewPos == "prev" ) { iNewPos = jStepArea . scrollLeft ( ) - oRoadMap . iStepWidth * getRTLFactor ( ) ; } else if ( iNewPos == "keep" ) { iNewPos = jStepArea . scrollLeft ( ) ; } else { iNewPos = iNewPos * getRTLFactor ( ) ; } var fDoAfterScroll = function ( ) { updateDelimiters ( oRoadMap ) ; if ( fEndCallBack ) { var jFirstVisibleRef = RoadMapRenderer . getFirstVisibleRef ( oRoadMap ) ; fEndCallBack ( jFirstVisibleRef . attr ( "id" ) ) ; } } ; if ( ! jQuery . fx . off && ! bSkipAnim ) { jStepArea . animate ( { scrollLeft : iNewPos } , "fast" , fDoAfterScroll ) ; } else { jStepArea . scrollLeft ( iNewPos ) ; fDoAfterScroll ( ) ; } }
Scrolls to the given position
Scrolls to the given position