component/Cropper.js
// judge whether to create new frame, frame or frame dot move acroding to action
judge whether to create new frame, frame or frame dot move acroding to action
judge whether to create new frame frame or frame dot move acroding to action
handleDrag (e) {
    if (this.state.dragging) {
      e.preventDefault()
      const {
        action
      } = this.state
      if (!action) return this.createNewFrame(e)
      if (action === 'move') return this.frameMove(e)
      this.frameDotMove(action, e)
    }
  }
handleDrag ( e ) { if ( this . state . dragging ) { e . preventDefault ( ) const { action } = this . state if ( ! action ) return this . createNewFrame ( e ) if ( action === 'move' ) return this . frameMove ( e ) this . frameDotMove ( action , e ) } }
judge whether to create new frame, frame or frame dot move acroding to action
judge whether to create new frame frame or frame dot move acroding to action