src/aria/utils/dragdrop/Drag.js
function (coord) {
                this.posX = coord.x;
                this.posY = coord.y;
                this._mouseInitialPosition = {
                    left : coord.x,
                    top : coord.y
                };
                var element = this.getElement(true), domUtil = ariaUtilsDom;
                // This will prevent text selection on IE on the element
                element.onselectstart = Aria.returnFalse;
                this._setElementStyle(element);
                this._setBoundary();
                var movable = this.getMovable();
                if (movable) {
                    // This will prevent text selection on IE on the movable
                    movable.onselectstart = Aria.returnFalse;
                    if (this.dragOverIFrame) {
                        // add overlay here for the visible page
                        this.overlay = new aria.utils.overlay.Overlay(document.body, {
                            className : ' '
                        });
                    }
                    this._movableInitialGeometry = domUtil.getGeometry(movable);
                    this._movableGeometry = ariaUtilsJson.copy(this._movableInitialGeometry);
                    var offset = domUtil.getOffset(movable);
                    this._baseMovableOffset = {
                        left : this._movableGeometry.x - offset.left,
                        top : this._movableGeometry.y - offset.top
                    };
                    this.$raiseEvent("dragstart");
                }
            }
function (coord) {
                this.posX = coord.x;
                this.posY = coord.y;
                this._mouseInitialPosition = {
                    left : coord.x,
                    top : coord.y
                };
                var element = this.getElement(true), domUtil = ariaUtilsDom;
                // This will prevent text selection on IE on the element
                element.onselectstart = Aria.returnFalse;
                this._setElementStyle(element);
                this._setBoundary();
                var movable = this.getMovable();
                if (movable) {
                    // This will prevent text selection on IE on the movable
                    movable.onselectstart = Aria.returnFalse;
                    if (this.dragOverIFrame) {
                        // add overlay here for the visible page
                        this.overlay = new aria.utils.overlay.Overlay(document.body, {
                            className : ' '
                        });
                    }
                    this._movableInitialGeometry = domUtil.getGeometry(movable);
                    this._movableGeometry = ariaUtilsJson.copy(this._movableInitialGeometry);
                    var offset = domUtil.getOffset(movable);
                    this._baseMovableOffset = {
                        left : this._movableGeometry.x - offset.left,
                        top : this._movableGeometry.y - offset.top
                    };
                    this.$raiseEvent("dragstart");
                }
            }
function ( coord ) { this . posX = coord . x ; this . posY = coord . y ; this . _mouseInitialPosition = { left : coord . x , top : coord . y } ; var element = this . getElement ( true ) , domUtil = ariaUtilsDom ; // This will prevent text selection on IE on the element element . onselectstart = Aria . returnFalse ; this . _setElementStyle ( element ) ; this . _setBoundary ( ) ; var movable = this . getMovable ( ) ; if ( movable ) { // This will prevent text selection on IE on the movable movable . onselectstart = Aria . returnFalse ; if ( this . dragOverIFrame ) { // add overlay here for the visible page this . overlay = new aria . utils . overlay . Overlay ( document . body , { className : ' ' } ) ; } this . _movableInitialGeometry = domUtil . getGeometry ( movable ) ; this . _movableGeometry = ariaUtilsJson . copy ( this . _movableInitialGeometry ) ; var offset = domUtil . getOffset ( movable ) ; this . _baseMovableOffset = { left : this . _movableGeometry . x - offset . left , top : this . _movableGeometry . y - offset . top } ; this . $raiseEvent ( "dragstart" ) ; } }
Handle the drag start. Initialize some reference geometries and raise the dragstart event
@param {Object} coord Contains the x and y coordinates of the mouse when a drag start has been detected
Handle the drag start . Initialize some reference geometries and raise the dragstart event