src/ng-drag-scroll.js
function handleMouseUp (e) {
                    if(enabled){
                        var selectable = (e.target.attributes && 'drag-scroll-text' in e.target.attributes);
                        var withinXConstraints = (e.clientX >= (startClientX - allowedClickOffset) && e.clientX <= (startClientX + allowedClickOffset));
                        var withinYConstraints = (e.clientY >= (startClientY - allowedClickOffset) && e.clientY <= (startClientY + allowedClickOffset));

                        // Set 'pushed' state
                        pushed = false;

                        // Check if cursor falls within X and Y axis constraints
                        if(selectable && withinXConstraints && withinYConstraints) {
                            // If so, select the text inside the target element
                            selectText(e.target);
                        }

                        $scope.$apply(function() {
                            onDragEnd($scope);
                        });

                        removeDragListeners();
                    }

                }
function handleMouseUp (e) {
                    if(enabled){
                        var selectable = (e.target.attributes && 'drag-scroll-text' in e.target.attributes);
                        var withinXConstraints = (e.clientX >= (startClientX - allowedClickOffset) && e.clientX <= (startClientX + allowedClickOffset));
                        var withinYConstraints = (e.clientY >= (startClientY - allowedClickOffset) && e.clientY <= (startClientY + allowedClickOffset));

                        // Set 'pushed' state
                        pushed = false;

                        // Check if cursor falls within X and Y axis constraints
                        if(selectable && withinXConstraints && withinYConstraints) {
                            // If so, select the text inside the target element
                            selectText(e.target);
                        }

                        $scope.$apply(function() {
                            onDragEnd($scope);
                        });

                        removeDragListeners();
                    }

                }
function handleMouseUp ( e ) { if ( enabled ) { var selectable = ( e . target . attributes && 'drag-scroll-text' in e . target . attributes ) ; var withinXConstraints = ( e . clientX >= ( startClientX - allowedClickOffset ) && e . clientX <= ( startClientX + allowedClickOffset ) ) ; var withinYConstraints = ( e . clientY >= ( startClientY - allowedClickOffset ) && e . clientY <= ( startClientY + allowedClickOffset ) ) ; // Set 'pushed' state pushed = false ; // Check if cursor falls within X and Y axis constraints if ( selectable && withinXConstraints && withinYConstraints ) { // If so, select the text inside the target element selectText ( e . target ) ; } $scope . $apply ( function ( ) { onDragEnd ( $scope ) ; } ) ; removeDragListeners ( ) ; } }
Handles mouseup event
@param {object} e MouseUp event
Handles mouseup event