views:

15

answers:

1
$(this.dom.full).draggable({
    containment: '#gib1',
    disabled: false,
    stop: function(event2, ui) {
        cancelFollow = true;
        return false;
    }
});

I have made my div draggable but, it gets disable after one movement. Please help.

Regrads
rahul

A: 

You need to remove the return false statement from the stop event handler.

$('this.dom.full').draggable({
    containment: '#gib1',
    disabled: false,
    stop: function(event2, ui) {
        cancelFollow = true;
    }
});

This works.

Yi Jiang
Thanks it worked
Rahul Mehta