I'm working on a project where I am using a script.aculo.us Sortable object.
It works nice and fast in Firefox and Chrome, but in IE it is incredibly slow whenever I drop an element.
I've done a little checking, and it turns out that in IE, the "onUpdate" callback function gets called about 8 times every time I drop. Normally it is supposed to only get called one time per sortable container (destination and origin).
Since my callback function resizes some elements and draws graphs in those elements, the computation involved for each call is considerable.
Does anyone know what could be causing this problem in IE, or how to fix it?
EDIT:
I've noticed that the problem isn't that it triggers many many times when it is dragged, the problem is that the onUpdate
function gets fired when the order of a sortable changes, even if the drag hasn't ended. It seems that onUpdate
is actually working like the onChange
callback, but only IE.