code: function(step){
  		this.cancelEvent = false;
  		this.mousestart = (step===0);
  		this.mousemove  = (step===1);
  		this.mouseend   = (step===2);
  		
  		var puzzle = this.puzzle;
  		puzzle.emit('mouse');
  		if(!this.cancelEvent && (this.btn==='left' || this.btn==='right')){
  			if(this.mousestart){
  				puzzle.opemgr.newOperation();
  				puzzle.errclear();
  			}
  			else{ puzzle.opemgr.newChain();}
  			
  			this.mouseinput();
  		}
  	}
docs: --------------------------------------------------------------------------- mv.mouseevent() マウスイベント処理 ---------------------------------------------------------------------------