Aipoでドラッグ判定にあそびを入れる

フィールドに以下を追加

  pageX:0,
  pageY:0,
  diff:5,
onFirstMove:function (e) {
            this.pageX = e.pageX;
            this.pageY = e.pageY;
        onMouseMove:function (e) {
            if (this.dragSource.isDraggable == false) return;
            if(this.pageX == 0 && this.pageY == 0){
                return;
            }
            var deltaX = this.pageX - e.pageX;
            var deltaY = this.pageY - e.pageY;
            if (Math.abs(deltaX) - this.diff <= 0 && Math.abs(deltaY) - this.diff <= 0) {
                return ;
            }
            dojo.style(this.node, "opacity", 0.5);