PDA

View Full Version : listeners drag && dragend not working?



vivendi
3 Oct 2011, 1:15 AM
I have a panel on which i have 2 listeners:


drag: {
element: 'el',
fn: function(event, ui)
{
Ext.getCmp('list2').update('deltaX:'+list1_left + ' -> ' + event.deltaY);
}
},
dragend: {
element: 'el',
fn: function()
{
Ext.getCmp('list2').update('done');
}
}


When i remove dragend, then 'drag' does work. When i add 'dragend' back in, then 'drag' doesn't seem to work but 'dragend' DOES work... Any idea what the problem could be...??

- edit -

When i put dragend above drag. then drag always works, but dragend never gets fired...