src/aria/utils/dragdrop/Drag.js
function () {
                var element = this.getElement();
                // This is to handle if there is a scroll
                element.onselectstart = Aria.returnTrue;
                if (this.overlay) {
                    // remove overlay here
                    this.overlay.$dispose();
                    this.overlay = null;
                }
                if (this.proxy && this.proxy.overlay) {
                    element.style.top = (this._elementInitialPosition.top + this._movableGeometry.y - this._movableInitialGeometry.y)
                            + "px";
                    element.style.left = (this._elementInitialPosition.left + this._movableGeometry.x - this._movableInitialGeometry.x)
                            + "px";
                    this.proxy.$dispose();
                    this.proxy = null;
                }

                this.$raiseEvent("dragend");
            }
function () {
                var element = this.getElement();
                // This is to handle if there is a scroll
                element.onselectstart = Aria.returnTrue;
                if (this.overlay) {
                    // remove overlay here
                    this.overlay.$dispose();
                    this.overlay = null;
                }
                if (this.proxy && this.proxy.overlay) {
                    element.style.top = (this._elementInitialPosition.top + this._movableGeometry.y - this._movableInitialGeometry.y)
                            + "px";
                    element.style.left = (this._elementInitialPosition.left + this._movableGeometry.x - this._movableInitialGeometry.x)
                            + "px";
                    this.proxy.$dispose();
                    this.proxy = null;
                }

                this.$raiseEvent("dragend");
            }
function ( ) { var element = this . getElement ( ) ; // This is to handle if there is a scroll element . onselectstart = Aria . returnTrue ; if ( this . overlay ) { // remove overlay here this . overlay . $dispose ( ) ; this . overlay = null ; } if ( this . proxy && this . proxy . overlay ) { element . style . top = ( this . _elementInitialPosition . top + this . _movableGeometry . y - this . _movableInitialGeometry . y ) + "px" ; element . style . left = ( this . _elementInitialPosition . left + this . _movableGeometry . x - this . _movableInitialGeometry . x ) + "px" ; this . proxy . $dispose ( ) ; this . proxy = null ; } this . $raiseEvent ( "dragend" ) ; }
Handle the drag end. Apply the correct positioning to the draggable element
Handle the drag end . Apply the correct positioning to the draggable element