I use:
Jquery-1.6.2 jquery-u-1.8.16 collision 1.0.1
... create a web application for drawing blocks. I have a grid table that has selection cells. Above this layer are the "tents." When the tent moves or changes, I want the overlapping cells in the table below to have special classes applied to them, so I started using collision 1.0.1.
It seemed to have exactly the desired effect, however, when you drag the selection and THEN resize it - the cells below no longer reflect the collisions from the step above until you drag the chassis again. If you create a new selection and just change its size, the collision is calculated exactly, it only goes wrong after dragging.
There is a demo at http://accessibledesign.net/block_painter/client/ (just drag the selection area)
The yellow cells reflect the collision with the selection above.
I conducted extensive testing and can confirm that the volatile tents themselves have all the correct properties, the error seems to be related to the collision function:
$("#grid td.ui-selected").removeClass("ui-selected"); hits = DATA.elems.curMarquee.collision($("#grid td.col")) hits.addClass("ui-selected");
This code runs at the βstopβ of the resizable or drag and drop - and runs at the right time.
source share