Change draggable grid a lot, and it screws up snap

Change draggable grid a lot, and it screws up snap


Hello,
I want to bring attention to a bug I reported at http://ui.jquery.com/bugs/ticket/3549
It's hard to explain this bug so therefore the bug report was lacking
explanation, but had example and code to reproduce the problem
instead.
I'll try to explain in words here.
Step 1. When a box is draggable with grid:[2,0], you expect the box to
move horizantally 0px, 2px, 4px, 6px ... relative to the position of
the parent element.
Step 2. When you change the same box's grid to [5,0], you expect the
box to move horizontally 0px, 5px, 10px, 15px ... relative to parent
as well.
But in Step 2, the box does not always move that way. Depending on the
previous grid value in Step 1, the box can move 2px, 7px, 12px 17px...
or 4px, 9px, 14px 19px ... so the grid shifts but still with 5px
increments.
But furthermore, it doesn't depend on the previous grid value, but the
'previous previous' grid value. (yes I said 'previous' twice). This is
the bug I'm complaining about.
Like I said this is hard to explain, I urge you to follow the bug
report at http://ui.jquery.com/bugs/ticket/3549 . I have listed there
runnable html code and a simple instruction to reproduce the problem.
I'm pretty sure it is a very fixable problem.
Thank you very much,
Robin