How to constrain jQuery draggable to both x and y axes -
it's pretty easy constrain jquery draggable axis this:
$("#object").draggable({ axis: "x" });
but how can constrain both x , y? iow, want allow both vertical , horizontal movement nothing else (imagine rooks on chess board).
just add works
$("#object").draggable({ axis: "x,y" });
Comments
Post a Comment