src/aria/utils/Mouse.js
function (evt) {
                var event = new ariaDomEvent(evt);

                connectMouseEvents(this);

                if (evt.type === "touchstart") {
                    // The position of touch events is not determined correctly by clientX/Y
                    var elementPosition = ariaTouchEvent.getPositions(event);
                    event.clientX = elementPosition[0].x;
                    event.clientY = elementPosition[0].y;
                }

                if (this._detectDrag(event)) {
                    event.preventDefault(true);
                }

                event.$dispose();
                return false;
            }
function (evt) {
                var event = new ariaDomEvent(evt);

                connectMouseEvents(this);

                if (evt.type === "touchstart") {
                    // The position of touch events is not determined correctly by clientX/Y
                    var elementPosition = ariaTouchEvent.getPositions(event);
                    event.clientX = elementPosition[0].x;
                    event.clientY = elementPosition[0].y;
                }

                if (this._detectDrag(event)) {
                    event.preventDefault(true);
                }

                event.$dispose();
                return false;
            }
function ( evt ) { var event = new ariaDomEvent ( evt ) ; connectMouseEvents ( this ) ; if ( evt . type === "touchstart" ) { // The position of touch events is not determined correctly by clientX/Y var elementPosition = ariaTouchEvent . getPositions ( event ) ; event . clientX = elementPosition [ 0 ] . x ; event . clientY = elementPosition [ 0 ] . y ; } if ( this . _detectDrag ( event ) ) { event . preventDefault ( true ) ; } event . $dispose ( ) ; return false ; }
Listener for the mouse down event. It detects possible gestures
@param {HTMLEvent} evt mousedown event. It is not wrapped yet
@private
Listener for the mouse down event . It detects possible gestures