jQuery UI / Draggable / how to avoid click() event?
Hello all.
I'm having a draggable pane AND a click event on li elements inside my
scrollpane:
-------------------------------------------------
$("#scrollpane").draggable({
containment: [-1250, -1500, 85, 230],
drag:(function(sync){
yy=$(this).offset();
$("#chanbar").css({"top":(yy.top - 230)});
})
});
----------
later on
----------
$("#scrollpane ul#channame li").click(expand);
-------------------------------------------------
each time i'm dragging #scrollpane, i'm firing the expand() fonction.
I want to prevent the click() firing while dragging: scrollpane is
full of different LI elements; and the click should only be fired when
drag is over
Could you please help me achieving so?
Thanks