src/ng-drag-scroll.js
function selectText (element) {
                    var range;
                    if ($window.document.selection) {
                        range = $window.document.body.createTextRange();
                        range.moveToElementText(element);
                        range.select();
                    } else if ($window.getSelection) {
                        range = $window.document.createRange();
                        range.selectNode(element);
                        $window.getSelection().addRange(range);
                    }
                }
function selectText (element) {
                    var range;
                    if ($window.document.selection) {
                        range = $window.document.body.createTextRange();
                        range.moveToElementText(element);
                        range.select();
                    } else if ($window.getSelection) {
                        range = $window.document.createRange();
                        range.selectNode(element);
                        $window.getSelection().addRange(range);
                    }
                }
function selectText ( element ) { var range ; if ( $window . document . selection ) { range = $window . document . body . createTextRange ( ) ; range . moveToElementText ( element ) ; range . select ( ) ; } else if ( $window . getSelection ) { range = $window . document . createRange ( ) ; range . selectNode ( element ) ; $window . getSelection ( ) . addRange ( range ) ; } }
Selects text for a specific element
@param {object} element Selected element
Selects text for a specific element