src/aria/utils/dragdrop/Drag.js
function (evt) {
                var movable = this.getMovable();
                var domUtil = ariaUtilsDom;

                if (movable && movable.style) {
                    var geometry = ariaUtilsJson.copy(this._movableGeometry);
                    var mouseInitPos = this._mouseInitialPosition;
                    var movableInitPos = this._movableInitialGeometry;
                    if (!this._vertical) {
                        geometry.x = movableInitPos.x + evt.clientX - mouseInitPos.left;
                    }
                    if (!this._horizontal) {
                        geometry.y = movableInitPos.y + evt.clientY - mouseInitPos.top;
                    }
                    var pos = (this._boundary) ? domUtil.fitInside(geometry, this._boundary) : {
                        top : geometry.y,
                        left : geometry.x
                    };

                    movable.style.top = (pos.top - this._baseMovableOffset.top) + "px";
                    movable.style.left = (pos.left - this._baseMovableOffset.left) + "px";

                    geometry.y = pos.top;
                    geometry.x = pos.left;

                    this.posY = mouseInitPos.top + geometry.y - movableInitPos.y;
                    this.posX = mouseInitPos.left + geometry.x - movableInitPos.x;
                    this._movableGeometry = geometry;
                    this.$raiseEvent("move");
                }
            }
function (evt) {
                var movable = this.getMovable();
                var domUtil = ariaUtilsDom;

                if (movable && movable.style) {
                    var geometry = ariaUtilsJson.copy(this._movableGeometry);
                    var mouseInitPos = this._mouseInitialPosition;
                    var movableInitPos = this._movableInitialGeometry;
                    if (!this._vertical) {
                        geometry.x = movableInitPos.x + evt.clientX - mouseInitPos.left;
                    }
                    if (!this._horizontal) {
                        geometry.y = movableInitPos.y + evt.clientY - mouseInitPos.top;
                    }
                    var pos = (this._boundary) ? domUtil.fitInside(geometry, this._boundary) : {
                        top : geometry.y,
                        left : geometry.x
                    };

                    movable.style.top = (pos.top - this._baseMovableOffset.top) + "px";
                    movable.style.left = (pos.left - this._baseMovableOffset.left) + "px";

                    geometry.y = pos.top;
                    geometry.x = pos.left;

                    this.posY = mouseInitPos.top + geometry.y - movableInitPos.y;
                    this.posX = mouseInitPos.left + geometry.x - movableInitPos.x;
                    this._movableGeometry = geometry;
                    this.$raiseEvent("move");
                }
            }
function ( evt ) { var movable = this . getMovable ( ) ; var domUtil = ariaUtilsDom ; if ( movable && movable . style ) { var geometry = ariaUtilsJson . copy ( this . _movableGeometry ) ; var mouseInitPos = this . _mouseInitialPosition ; var movableInitPos = this . _movableInitialGeometry ; if ( ! this . _vertical ) { geometry . x = movableInitPos . x + evt . clientX - mouseInitPos . left ; } if ( ! this . _horizontal ) { geometry . y = movableInitPos . y + evt . clientY - mouseInitPos . top ; } var pos = ( this . _boundary ) ? domUtil . fitInside ( geometry , this . _boundary ) : { top : geometry . y , left : geometry . x } ; movable . style . top = ( pos . top - this . _baseMovableOffset . top ) + "px" ; movable . style . left = ( pos . left - this . _baseMovableOffset . left ) + "px" ; geometry . y = pos . top ; geometry . x = pos . left ; this . posY = mouseInitPos . top + geometry . y - movableInitPos . y ; this . posX = mouseInitPos . left + geometry . x - movableInitPos . x ; this . _movableGeometry = geometry ; this . $raiseEvent ( "move" ) ; } }
Handle the mouse move during a drag by setting the correct position on the movable element. Raise the
move event
@param {aria.DomEvent} evt
Handle the mouse move during a drag by setting the correct position on the movable element . Raise the move event