rem: } else if (Math.abs(this.pos.y + this.pos.h - posy) < 15.0)  { 
add: } else if ((Math.abs(this.pos.y + this.pos.h - posy) < 15.0) && (posx > this.pos.x - 15) && (posx < this.pos.x + this.pos.h + 15))  { 
context:   update_position: function(event) {    var posx = Event.pointerX(event) - this.pos.offsetx;    var posy = Event.pointerY(event) - this.pos.offsety;    if (!this.moving) {      this.moveAll = false;      this.pos.startx = posx;      if (Math.abs(this.pos.x - posx) < 15.0) {        // moving left corners        this.moveX  = 'left';        this.moving = true;      } else if (Math.abs(this.pos.x + this.pos.w - posx) < 15.0) {        // moving right corners        this.moveX = 'right';        this.moving = true;      } else {        this.moveX = false;      }      if (Math.abs(this.pos.y - posy) < 15.0) {        // moving top        this.moveY = 'top';        this.moving = true;      } else if (Math.abs(this.pos.y + this.pos.h - posy) < 15.0)  {        // moving bottom        this.moveY = 'bottom';        this.moving = true;      } else {        this.moveY = false;      }      if (this.moving) {        // ok      } else if (posx >= this.pos.x && posy >= this.pos.y && posx <= (this.pos.x + this.pos.w) && posy <= (this.pos.y + this.pos.h) && !(this.pos.w == this.pos.fullw && this.pos.h == this.pos.fullh) ) {        this.moveAll = true;        // inside drag        this.pos.allx = posx - this.pos.x;        this.pos.ally = posy - this.pos.y;      } else {        // start new move        this.pos.x = posx;        this.pos.y = posy;        this.pos.w = 1;        this.pos.h = 1;        this.moveX = 'right';        this.moveY = 'bottom';      }      this.moving = true;    }    if (this.moveAll) {      // drag      this.pos.x = posx - this.pos.allx;      this.pos.y = posy - this.pos.ally;    } else {      if (this.moveX == 'left') {        this.pos.w = this.pos.x + this.pos.w - posx;        this.pos.x = posx;      } else if (this.moveX == 'right') {        this.pos.w = posx - this.pos.x;      }      if (this.moveY == 'top') {        this.pos.h = this.pos.y + this.pos.h - posy;        this.pos.y = posy;      } else if (this.moveY == 'bottom'){        this.pos.h = posy - this.pos.y;      }    }    if (event.shiftKey) {      // force square      if (this.pos.h > this.pos.w) {        this.pos.w = this.pos.h;      } else {        this.pos.h = this.pos.w;      }    }    this.update_sizes();  },
meta: 6219	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6219/41968e14e6e351224fe0819883684b79b3346616/zena.js/clean/public/javascripts/zena.js