src/sap.ui.layout/src/sap/ui/layout/Splitter.js
function _preventTextSelection(bTouch) {
		var fnPreventSelection = function(oEvent) {
			oEvent.preventDefault();
		};
		var fnAllowSelection = null;
		fnAllowSelection = function() {
			document.removeEventListener("touchend",  fnAllowSelection);
			document.removeEventListener("touchmove", fnPreventSelection);
			document.removeEventListener("mouseup",   fnAllowSelection);
			document.removeEventListener("mousemove", fnPreventSelection);
		};

		if (bTouch) {
			this._ignoreMouse = true; // Ignore mouse-events until touch is done
			document.addEventListener("touchend",  fnAllowSelection);
			document.addEventListener("touchmove", fnPreventSelection);
		} else {
			document.addEventListener("mouseup",   fnAllowSelection);
			document.addEventListener("mousemove", fnPreventSelection);
		}
	}
function _preventTextSelection(bTouch) {
		var fnPreventSelection = function(oEvent) {
			oEvent.preventDefault();
		};
		var fnAllowSelection = null;
		fnAllowSelection = function() {
			document.removeEventListener("touchend",  fnAllowSelection);
			document.removeEventListener("touchmove", fnPreventSelection);
			document.removeEventListener("mouseup",   fnAllowSelection);
			document.removeEventListener("mousemove", fnPreventSelection);
		};

		if (bTouch) {
			this._ignoreMouse = true; // Ignore mouse-events until touch is done
			document.addEventListener("touchend",  fnAllowSelection);
			document.addEventListener("touchmove", fnPreventSelection);
		} else {
			document.addEventListener("mouseup",   fnAllowSelection);
			document.addEventListener("mousemove", fnPreventSelection);
		}
	}
function _preventTextSelection ( bTouch ) { var fnPreventSelection = function ( oEvent ) { oEvent . preventDefault ( ) ; } ; var fnAllowSelection = null ; fnAllowSelection = function ( ) { document . removeEventListener ( "touchend" , fnAllowSelection ) ; document . removeEventListener ( "touchmove" , fnPreventSelection ) ; document . removeEventListener ( "mouseup" , fnAllowSelection ) ; document . removeEventListener ( "mousemove" , fnPreventSelection ) ; } ; if ( bTouch ) { this . _ignoreMouse = true ; // Ignore mouse-events until touch is done document . addEventListener ( "touchend" , fnAllowSelection ) ; document . addEventListener ( "touchmove" , fnPreventSelection ) ; } else { document . addEventListener ( "mouseup" , fnAllowSelection ) ; document . addEventListener ( "mousemove" , fnPreventSelection ) ; } }
Prevents the selection of text while the mouse is moving when pressed

@param {boolean} [bTouch] If set to true, touch events instead of mouse events are captured
Prevents the selection of text while the mouse is moving when pressed