I have function which bind draggable functionality to newly added div.
Something like this:
function bind_draggable($el){
$el.draggable({
//options...
});
}
var $container = $('#container'),
$div = $(<some content here>);
$container.append($div);
bind_draggable($div);
It works fine in all browsers but fails in IE8. I tried to add ready() handler to $div, but this doesn’t help too.
The reason why draggable doesn’t work in IE < 9 is
distance: 15declaration in draggable options. In factdelayoption is also incompatible with IE < 9