| Línea 1504... |
Línea 1504... |
| 1504 |
$("#boton_recortar").removeClass("boton_normal").addClass("recortar boton_marino").text("LABEL_CUT")
|
1504 |
$("#boton_recortar").removeClass("boton_normal").addClass("recortar boton_marino").text("LABEL_CUT")
|
| 1505 |
actualizar();
|
1505 |
actualizar();
|
| Línea 1506... |
Línea 1506... |
| 1506 |
|
1506 |
|
| 1507 |
$(elemento).mousemove(function(e){
|
1507 |
$(elemento).mousemove(function(e){
|
| 1508 |
mouse = raton(this, e);
|
1508 |
mouse = raton(this, e);
|
| 1509 |
//console.log("raton x: "+mouse.x+ " raton Y: " +mouse.y+ " tx: "+tx+" ty: "+ty+" txf:"+(txf+tx)+" tyf:"+(tyf+ty) )
|
1509 |
console.log("raton x: "+mouse.x+ " raton Y: " +mouse.y+ " tx: "+tx+" ty: "+ty+" txf:"+(txf+tx)+" tyf:"+(tyf+ty) )
|
| 1510 |
if(!recorte_listo){
|
1510 |
if(!recorte_listo){
|
| 1511 |
if(x<mouse.x &&(xf+x)>mouse.x && y<mouse.y && (y+yf)>mouse.y){
|
1511 |
if(x<mouse.x &&(xf+x)>mouse.x && y<mouse.y && (y+yf)>mouse.y){
|
| 1512 |
if((xf+x-cuadro_dimencion)<mouse.x &&(xf+x)>mouse.x && (y+yf-cuadro_dimencion)<mouse.y && (y+yf)>mouse.y){
|
1512 |
if((xf+x-cuadro_dimencion)<mouse.x &&(xf+x)>mouse.x && (y+yf-cuadro_dimencion)<mouse.y && (y+yf)>mouse.y){
|
| 1513 |
$(elemento).css("cursor","nw-resize");
|
1513 |
$(elemento).css("cursor","nw-resize");
|