Stop dragging when collision...

Stop dragging when collision...

Dear all,

I spent the whole day to try to solve my problem but I didn't

I made a collision detector to know if a draggable div is over another one. It works well and I can catch the information "inside" or "outside" the box (see attached code).

NOW, I wish to stop the dragging when the div goes over an other one.

I tried to play with "disable" or to modify the position of the div (to put it next to the box), but i does not work

Code is (should be) attached.
Demo is also available at http://www.noisy.ch/jq/collision.html
Code : http://www.noisy.ch/jq/collision.html.txt

Have a look around line 90...

Thank you in advance for any help, BR,
mhammout

















    • Topic Participants

    • malik