dist/js/cropjs.js
function (event) {
            var point = this.getMousePoint(event);

            if (this._crop instanceof IMSoftcrop.Softcrop && typeof this.handle === 'string') {
                this.updateImageInfo(true);
                this._dragPoint = point;
                this._dragObject = this.handle;
            }
            else if (this._crop instanceof IMSoftcrop.Softcrop && this._crop.inArea(point)) {
                this.updateImageInfo(true);
                this._dragObject = this._crop;
                this._dragPoint = point;
            }
            else if (this._image instanceof IMSoftcrop.Image && this._image.inArea(point)) {
                this.updateImageInfo(false);
                this._dragObject = this._image;
                this._dragPoint = point;
            }
        }
function (event) {
            var point = this.getMousePoint(event);

            if (this._crop instanceof IMSoftcrop.Softcrop && typeof this.handle === 'string') {
                this.updateImageInfo(true);
                this._dragPoint = point;
                this._dragObject = this.handle;
            }
            else if (this._crop instanceof IMSoftcrop.Softcrop && this._crop.inArea(point)) {
                this.updateImageInfo(true);
                this._dragObject = this._crop;
                this._dragPoint = point;
            }
            else if (this._image instanceof IMSoftcrop.Image && this._image.inArea(point)) {
                this.updateImageInfo(false);
                this._dragObject = this._image;
                this._dragPoint = point;
            }
        }
function ( event ) { var point = this . getMousePoint ( event ) ; if ( this . _crop instanceof IMSoftcrop . Softcrop && typeof this . handle === 'string' ) { this . updateImageInfo ( true ) ; this . _dragPoint = point ; this . _dragObject = this . handle ; } else if ( this . _crop instanceof IMSoftcrop . Softcrop && this . _crop . inArea ( point ) ) { this . updateImageInfo ( true ) ; this . _dragObject = this . _crop ; this . _dragPoint = point ; } else if ( this . _image instanceof IMSoftcrop . Image && this . _image . inArea ( point ) ) { this . updateImageInfo ( false ) ; this . _dragObject = this . _image ; this . _dragPoint = point ; } }
On mouse down event handler
@param event
On mouse down event handler